Next Article in Journal
Deep Learning-Based Heartbeat Detection from 3D Seismocardiography for Robust Heart Rate Monitoring
Next Article in Special Issue
One-Cycle Windowed-DFT Harmonic Estimation with Spectral-Interference Compensation
Previous Article in Journal
Early Detection of Spoofing Threats and Network Resilience Prediction in Drones Based on GRU and LSTM
Previous Article in Special Issue
Uncertainty Effects on Smart Grid Services for Low-Voltage Distribution Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

SA-YOLOv11s: A Slicing-Attention YOLOv11s with U-IoU for Oil Leakage Detection in Power Equipment

1
School of Electrical Engineering, Shandong University, Jinan 250100, China
2
College of New Energy, China University of Petroleum (East China), Qingdao 266580, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(10), 3255; https://doi.org/10.3390/s26103255
Submission received: 26 April 2026 / Revised: 14 May 2026 / Accepted: 18 May 2026 / Published: 20 May 2026
(This article belongs to the Special Issue Advances in Sensors and Metering Solutions for Smart Grids)

Highlights

What are the main findings?
  • An enhanced YOLOv11s-based model is developed for accurate oil leakage detection in power equipment.
  • A SimAMWS attention module and U-IoU loss with dynamic scaling are introduced, significantly improving feature extraction and localization accuracy.
What are the implications of the main findings?
  • The proposed method achieves 97.7% mAP@0.5 and 96.4 FPS, outperforming mainstream detection models in both accuracy and real-time performance.
  • It provides reliable and efficient support for intelligent maintenance and monitoring of power equipment.

Abstract

To address the challenges of low detection accuracy and high missed detection rates in insulating oil leakage detection for power equipment—arising from small and densely distributed oil stains, structural occlusion, and complex background interference—this paper proposes a detection method based on an enhanced YOLOv11s (You Only Look Once version 11 small) architecture. First, a dedicated dataset is constructed, encompassing four representative scenarios—small object detection, complex background, multi-object detection and equipment occlusion—to evaluate detection performance. Second, in terms of network design, a proposed attention module, SimAMWS (Simple Attention Module With Slicing), is introduced. This module enhances the model’s sensitivity to subtle and irregular oil stains by utilizing slicing operations and localized energy-based weighting. For bounding box regression, a U-IoU (Unified Intersection over Union) loss is adopted, which incorporates a dynamic scaling mechanism during training to enable the model to focus more effectively on high-quality candidate boxes—leading to improved localization accuracy, particularly suited to the characteristics of oil leakage. Finally, comparative experiments are conducted against mainstream object detectors including SSD (Single Shot MultiBox Detector), Faster R-CNN (Region-based Convolutional Neural Network), YOLOv5s, YOLOv8s, and the baseline YOLOv11s. The proposed method achieves an mAP@0.5 (mean Average Precision at IoU = 0.5) of 97.7% and an mAP@0.5:0.95 of 66.9%, with an inference speed of 96.4 FPS. These results demonstrate that the proposed model delivers higher detection accuracy while maintaining high inference efficiency, making it well-suited for real-time oil leak detection in power equipment and supporting the development of intelligent operation and maintenance systems in the power industry.

1. Introduction

With the rapid development of power systems and the continuous growth in load demand, the operational reliability of power equipment has become a crucial factor affecting the safe and stable operation of the power grid [1]. In modern power infrastructure, key components such as transformers and current transformers extensively use insulating oil for electrical insulation and thermal dissipation. However, during long-term operation, issues such as seal degradation, structural fatigue, and external corrosion can result in oil leakage over the surface of the equipment. Such leakage not only compromises the insulation performance but also introduces significant safety hazards, including short circuits, electrical arcing, and even equipment failure with fire. In addition, oil spills may lead to soil pollution, causing serious environmental repercussions [2,3,4]. Therefore, the prompt and accurate detection of oil leakage in power equipment is essential to ensure the safe and reliable operation of the power system.
Currently, the detection of insulating oil leakage in power equipment primarily relies on three types of methods: manual inspection, sensor-based approaches, and image recognition techniques. Manual inspection entails visually examining the external surfaces of electrical equipment and surrounding areas for oil stains as indicators of leakage. However, this method is characterized by low efficiency, a high likelihood of missed or false detections, and limited accuracy in identifying subtle or irregular oil stain targets [5,6]. Sensor-based methods utilize a variety of devices, such as ultrasonic, infrared, fiber-optic, and gas-sensitive sensors, to monitor parameters like acoustic signals, temperature, gas composition, and pressure within the insulating oil in real time. These measurements are then analyzed to assess potential leakage events. For example, Qian et al. employed ultrasonic sensors to capture acoustic signals, which were used to evaluate the condition of transformer insulating oil and infer leakage indirectly [7]. Similarly, Hashim et al. applied humidity and acoustic pattern sensors for detecting leaks in pipelines [8]. Despite their theoretical advantages, sensor-based techniques are often susceptible to environmental fluctuations, which can degrade their performance and limit reliability in real-world applications.
With the widespread deployment of inspection robots and video surveillance systems, large volumes of images can now be collected without relying on manual inspections [9,10]. Image-based analysis enables the early detection of oil leakage, thereby contributing to the safe operation of power equipment. For instance, Xia et al. proposed an oil leakage detection method based on ultraviolet-induced hyperspectral imaging, combining fluorescence–reflectance spectral features with principal component analysis to identify and track various types of insulating oil leakage [11]. Similarly, Lu et al. utilized the fluorescence emitted by insulating oil under ultraviolet illumination, applying the relationship between saturation and brightness in color space to detect leakage in images [12]. However, these methods still largely depend on manual image interpretation. Prolonged visual analysis may lead to operator fatigue, ultimately compromising detection accuracy and efficiency.
With rapid advancements in computer vision, deep learning-based image recognition techniques have emerged as practical methods to enhance detection precision and visualization capabilities, offering new possibilities for intelligent oil leakage identification in power systems. Object detection methods in this domain are generally classified into two paradigms: two-stage detectors, such as Faster R-CNN (Faster Region-based Convolutional Neural Network), which separate region proposal and classification to achieve high accuracy [13]; and one-stage detectors, such as YOLO (You Only Look Once) and SSD (Single Shot MultiBox Detector), which unify localization and classification in a single end-to-end architecture for real-time performance [14,15,16,17]. For example, Yang et al. enhanced the Faster R-CNN model using a ResNet-101 backbone to detect oil leakage defects in power equipment [2,18]. Ji et al. introduced a model based on the PFDAL-DETR (Progressive Feature Decoupling and Alignment Learning with DETR) framework, integrating DETR’s end-to-end detection capabilities with decoupling and alignment modules to improve performance under structurally complex scenarios [19,20,21]. Although these models achieve high detection accuracy, their high computational complexity may increase inference latency and reduce their practicality in real-time power equipment inspection. In recent years, YOLO-based one-stage detection algorithms have gained popularity in practical applications due to their fast inference speed, low deployment cost, and strong real-time capabilities. Progressive improvements in versions such as YOLOv5, YOLOv8, and YOLOv11 have led to architectural refinements and performance enhancements—especially for small object detection [22,23,24,25]. Nonetheless, despite their strong performance in general object detection tasks, YOLO models face difficulties in detecting small-scale oil stains and maintaining robustness under complex visual conditions. Moreover, although YOLO architectures are relatively lightweight, further optimization is still required to reduce computational cost while maintaining detection accuracy. To address these issues, Luo et al. proposed LA-YOLOv8s, a lightweight model tailored for insulating oil leakage detection. This model redesigns the backbone and neck structures to significantly reduce parameters and computational overhead while maintaining detection performance [26]. However, the dataset used in the study was relatively limited in scope, lacking comprehensive coverage of key scenarios such as equipment occlusion, complex backgrounds, small object detection, and multi-target detection. As a result, the model’s generalizability in real-world settings remains insufficiently validated. Given these limitations, improving the detection precision of lightweight models, particularly for small scale and multiple leakage targets in visually complex environments, has become a central focus of current research efforts. In contrast, YOLOv11s demonstrates significant advantages in terms of model compactness, lightweight design, and high inference speed, making it suitable for real-time monitoring applications in power systems, where low-latency image processing is required. Based on the above review, Table 1 summarizes the main categories of existing oil leakage detection methods.
YOLOv11s is selected as the baseline model because it provides a favorable balance between detection accuracy and computational efficiency. Its one-stage detection framework enables fast end-to-end inference, which is important for real-time inspection in power equipment monitoring scenarios. In addition, the C3k2, SPPF, and C2PSA modules in YOLOv11s contribute to efficient feature extraction, multi-scale perception, and attention-guided representation learning. These characteristics make YOLOv11s suitable for detecting small, irregular, and low-contrast oil leakage targets in complex power equipment environments, while leaving sufficient room for further improvement through lightweight attention and localization optimization.
This study presents an improved method for the intelligent detection of oil leakage in power equipment, based on an enhanced YOLOv11s architecture. The proposed enhancements incorporate two key technical innovations. First, the original SimAM (Simple Attention Module) [27,28,29] is extended by introducing a channel slicing strategy and localized normalized energy modeling, resulting in the development of SimAMWS (Simple Attention Module With Slicing). This module is embedded within the YOLOv11s backbone. By generating independent spatial attention maps for each channel, this content-aware attention mechanism enables fine-grained focus on different image regions, thereby improving the model’s ability to extract features from small targets. This enhancement is designed to address common challenges such as reduced detection accuracy in scenarios involving complex backgrounds or equipment occlusion. Second, the U-IoU (Unified Intersection over Union) loss function [30] is integrated into the bounding box regression module. This loss function dynamically scales the predicted bounding boxes during training, guiding the model to prioritize low-quality boxes for faster convergence in the early training stages, while gradually shifting attention to high-quality boxes for enhanced localization accuracy in later stages. This design improves detection performance, particularly in scenarios involving small-scale and multiple leakage targets. To validate the effectiveness of the proposed approach, a dedicated image dataset was constructed, covering four typical operational conditions: equipment occlusion, complex background interference, small object instances, and multi-target scenarios. The dataset simulates the visual disturbances and target variability encountered in real-world power equipment environments, providing a solid foundation for model training and evaluation. Its development enhances the practical applicability of the proposed method and supports future application in power equipment inspection systems. To address these problems, this paper proposes SA-YOLOv11s, whose core idea is to improve local feature perception and bounding box localization within a lightweight detection framework. Specifically, a slicing-based attention mechanism is introduced to enhance the representation of small and irregular oil leakage regions, and a U-IoU loss is adopted to dynamically optimize bounding box regression. These designs enable the model to improve detection accuracy in complex backgrounds, occlusion, and multi-target scenarios while preserving real-time performance.
The main contributions are as follows:
1. A lightweight oil leakage detection model, SA-YOLOv11s, is proposed for power equipment inspection.
2. A SimAMWS slicing-attention module is designed to enhance local feature responses for small and irregular oil leakage targets.
3. A U-IoU loss function is introduced to improve bounding box regression and localization accuracy.
4. A power equipment oil leakage dataset is constructed, and extensive experiments verify the effectiveness and real-time performance of the proposed method.

2. Methodology

2.1. Overview of the YOLOv11s Model

YOLOv11s represents a recent advancement in the YOLO (You Only Look Once) series, building upon the strengths of earlier versions such as YOLOv5 and YOLOv8. YOLOv11s follows the one-stage detection framework and introduces several lightweight modules for feature extraction and multi-scale representation. Notably, YOLOv11s incorporates the C3k2 (Cross Stage Partial with kernel size 2) module, the SPPF module (Spatial Pyramid Pooling—Fast), and the C2PSA (Convolutional block with Parallel Spatial Attention) module. Each of these components enhances the model’s capability for multi-scale feature extraction and attention-guided learning. The overall architecture of YOLOv11s is illustrated in Figure 1.
The input image is first processed by the Backbone, where it passes through a sequence of Conv (Convolutional layers) and C3k2 modules. These layers progressively reduce spatial resolution while extracting high-level semantic features. Next, the SPPF (Spatial Pyramid Pooling—Fast) module performs multi-scale pooling operations to enhance the model’s capacity to perceive objects at different scales. The C2PSA module introduces a spatial attention mechanism that directs the network’s focus toward salient regions in the image, thereby improving recognition of weak, irregular, or low-contrast targets. The extracted features are then transferred to the Head, where they undergo multi-scale upsampling, concatenation, and further convolutional operations. This process fuses spatial detail with contextual information, enabling joint modeling of object boundaries and semantic features. Finally, the fused feature maps are passed to the Detect module. Through three prediction branches, collectively referred to as 11Detect, the model outputs bounding box coordinates, category labels, and confidence scores, allowing for precise localization and classification of objects across a range of sizes, positions, and shapes. Despite its satisfactory performance in general object detection tasks, YOLOv11s faces limitations when applied to the detection of small-scale oil leakage spots. The continuous downsampling and convolution operations in the Backbone tend to compress spatial detail, which hinders accurate localization of small and irregular leakage traces. In the context of power equipment, such traces are typically small, irregular in shape, low in contrast, and susceptible to interference from complex backgrounds—all of which pose significant challenges to detection accuracy. Furthermore, practical factors such as variable camera angles and equipment occlusion introduce a considerable number of low-quality samples into real-world datasets. YOLOv11s employs the Complete IoU (CIoU) loss function, which imposes strong penalties on these low-quality predictions, potentially impairing the model’s generalization capability. Given these challenges [31], the standard YOLOv11s architecture falls short of meeting the precision and robustness requirements of real-world engineering applications. To address these limitations, this study introduces targeted improvements to both the attention mechanism and the loss function, aiming to enhance the model’s perceptual sensitivity and localization accuracy for oil leakage targets.

2.2. Improved Methodology

2.2.1. SimAMWS Module

To enhance the model’s feature extraction capabilities under challenging conditions, such as complex backgrounds, small-scale targets, and occlusion, this study introduces the SimAMWS module, an improved version of the original SimAM architecture [27]. The proposed module incorporates a spatial slicing mechanism, wherein the input feature map is divided into multiple sub-regions. Attention weighting is then independently applied within each sub-block, significantly enhancing the network’s ability to capture and model localized information. A schematic diagram illustrating the structure of the SimAMWS module is presented in Figure 2.
For each specific spatial position within a slice, the SimAMWS module employs the following energy function to model the importance of individual features:
e i , s = 4 ( σ ^ s 2 + λ ) ( t μ ^ s ) 2 + 2 σ ^ s 2 + 2 λ
In the equation, e i , s * denotes the energy value of a specific position during the processing of input features; and t represents the activation value of a single neuron at that position within a given channel of the feature map. The term λ is a regularization coefficient introduced to prevent instability during training caused by small denominators, with a default value of 0.0001. μ ^ s and σ ^ s 2 denote the mean and variance, respectively, of all other neurons within the same channel, and are defined as follows:
μ ^ s = 1 M s i s x i
σ ^ s 2 = 1 M s i s ( x i μ ^ s ) 2
In the equation, xi represents the feature value of a specific neuron, and Ms denotes the number of neurons within the s-th slice. The final attention weight is obtained by normalizing the inverse of the energy value through the sigmoid function:
X ˜ s = sigmoid e i , s X s
sigmoid ( x ) = 1 1 + e x
Equations (1)–(4) illustrate the derivation of the energy function. From this derivation, it can be observed that the smaller the value of e i , s * , the more linearly separable the target neuron is from other neurons within the same channel, indicating that the corresponding feature is more important for target extraction [32]. In the original SimAM module, both the mean and variance are computed from the entire feature map, which may lead the model to overemphasize background or large-area features. To address this issue, the SimAMWS module introduces a slicing mechanism that divides the feature map into multiple local sub-blocks, where energy weighting is computed independently within each region. This strategy not only enhances the saliency of small targets but also offers favorable properties for parallel computing. Compared with the original SimAM module, SimAMWS reduces part of the additional cost introduced by attention calculation. However, it still introduces a small overhead compared with the baseline YOLOv11s because feature slicing and recombination are required [33,34].
SimAMWS can be regarded as a localized version of SimAM. It calculates the SimAM energy function within sliced local regions rather than over the whole feature map, which reduces background interference and improves the response to small oil leakage targets. Unlike conventional spatial-wise attention, SimAMWS does not generate a global spatial attention map. It also differs from patch-wise self-attention and non-local blocks because it does not model pairwise token relationships or introduce additional learnable attention parameters [35,36,37].

2.2.2. U-IoU Loss Function

IoU (Intersection over Union) is a widely adopted evaluation metric in object detection tasks, used to quantify the spatial overlap between a predicted bounding box and the corresponding ground truth box. It measures prediction accuracy by computing the ratio of the intersection area to the union area of the two boxes. Formally, the IoU is defined as:
B p = ( x p , y p , w p , h p )
B g = ( x g , y g , w g , h g )
I o U ( B p , B g ) = | B p B g | | B p B g |
In the equation, xp and yp denote the center coordinates of the predicted bounding box, while xg and yg represent the center coordinates of the ground truth box. wp and hp indicate the width and height of the predicted box, respectively, and wg and hg denote the width and height of the ground truth box. | B p B g | refers to the intersection area between the predicted box Bp and the ground truth box Bg, while | B p B g | denotes the union area of the two bounding boxes.
Conventional IoU and its derivative loss functions—such as Generalized IoU (GIoU) [38], Distance IoU (DIoU), and Complete IoU (CIoU) [31]—primarily rely on static geometric error computations. These methods do not dynamically distinguish between predicted bounding boxes of varying quality, often leading to slow convergence during the early stages of training and insufficient optimization of high-quality predictions in the later stages. This limitation is particularly evident in scenarios involving small objects or densely packed targets, where detection accuracy is often constrained. To overcome these shortcomings, the U-IoU loss function introduces a dynamic scaling mechanism for predicted bounding boxes [30]. This approach balances rapid convergence for low-quality predictions with precise optimization for high-quality boxes. During the box shrinking operation, the IoU value decreases, resulting in a higher calculated box loss. This effectively increases the training weight of high-quality predicted boxes. Conversely, during the box expansion operation, the IoU value increases, leading to a lower box loss, thereby increasing the relative weight of low-quality predicted boxes. This dynamic adjustment mechanism accelerates convergence during training by adaptively emphasizing predictions of varying quality.
The loss function under this method is formulated as follows:
l o s s UIoU = 1 I o U ( B p , B g )
B p = ( x p , y p , α ( t ) w p , α ( t ) h p )
B g = ( x g , y g , α ( t ) w g , α ( t ) h g )
where lossUIoU denotes the bounding box regression loss. In the equation, α ( t ) denotes the dynamic scaling factor that varies with the training epoch t. This factor is designed to increase during the early stages of training—thereby enlarging the bounding boxes—and to decrease during the later stages to gradually shrink the boxes. This dynamic adjustment ensures both smoothness and differentiability in the transition process. In this study, the scaling factor α ( t ) is defined as
α ( t ) = 1 + 0.5 cos π t T
In the equation, t denotes the current training iteration, and T represents the total number of iterations. This function assigns a relatively large scaling factor to the bounding boxes during the early stages of training, which helps increase the weight of low-quality predicted boxes. As training progresses, α(t) is a time-dependent scaling factor used to adjust the size of the predicted bounding box during loss calculation. Specifically, t denotes the current training iteration and T represents the total number of training iterations. According to this cosine function, α(t) decreases smoothly from 1.5 at the beginning of training to 0.5 at the end of training. When α(t) > 1, the predicted bounding box is enlarged with its center unchanged; when α(t) = 1, the box keeps its original size; when α(t) < 1, the predicted bounding box is contracted.
The physical meaning of this “first expanding and then contracting” process is to adapt the optimization focus of bounding box regression at different training stages. In the early stage, the model usually produces low-quality predicted boxes with inaccurate positions and scales. Enlarging the predicted boxes increases the probability of overlap with the ground-truth boxes, alleviates excessive penalties caused by poor initial localization, and provides smoother gradients for stable convergence. This is particularly useful for small and weak oil leakage targets, whose boundaries are often ambiguous and easily disturbed by complex backgrounds.
As training progresses, α(t) gradually decreases and the scaled boxes change from expansion to contraction. In the later stage, contracting the predicted boxes imposes stricter requirements on the spatial alignment between predicted and ground-truth boxes. Only predictions that are close to the actual leakage region can maintain a high overlap, while boxes with inaccurate boundaries receive larger regression penalties. Therefore, the contraction process encourages the model to refine the boundary location and suppress redundant background regions. In this way, α(t) enables a coarse-to-fine optimization strategy: the early expansion improves robustness and convergence, whereas the later contraction enhances localization precision.
Building on the characteristics of the U-IoU loss function and the SimAMWS attention module, this study further enhances the detection accuracy of insulating oil leakage in power equipment by introducing targeted architectural improvements to YOLOv11s. Specifically, the SimAMWS module is embedded into the Head stage of the network to reinforce spatial attention, while the U-IoU loss function is employed to optimize the bounding box regression process. The overall architecture of the improved YOLOv11s model is illustrated in Figure 3.

2.2.3. Comparison with Related Techniques

To clarify the differences between the proposed modules and related methods, Table 2 compares representative attention mechanisms and bounding box regression losses in terms of their merits and limitations.
Table 2 shows that SimAMWS differs from common attention mechanisms because it does not introduce learnable attention parameters or pairwise spatial relation modeling. Instead, it localizes the SimAM calculation within sliced regions to improve the response to small oil leakage targets. For bounding box regression, U-IoU differs from EIoU, WIoU, and SIoU by introducing dynamic box scaling during training. This provides a coarse-to-fine regression process, although further comparison with other IoU losses on the constructed dataset is still needed.

3. Dataset and Experimental Setup

3.1. Dataset Construction

To evaluate the performance of the improved YOLOv11s model in the task of insulating oil leakage detection for power equipment, a dedicated oil leakage detection dataset was constructed based on real-world application scenarios. The dataset encompasses a variety of complex environmental conditions, including equipment occlusion, cluttered backgrounds, small object instances, and the coexistence of multiple targets. These representative scenarios are designed to simulate the detection challenges encountered in actual operational environments.
The constructed dataset includes four typical working conditions: (1) small object detection, (2) complex background, (3) multi-object detection, and (4) equipment occlusion. For each condition, 500 images were collected and annotated, resulting in a total of 2000 images. All images were resized to a resolution of 416 × 416 pixels. Annotation was performed using the LabelImg tool, and the dataset was randomly divided into training, validation, and test sets with a ratio of 8:1:1. This tailored dataset serves as a dedicated benchmark for insulating oil leakage detection in power equipment and is designed to reflect the complexities and challenges of real-world deployment scenarios. The width–height distribution of the bounding boxes in the dataset is shown in Figure 4.
Such a distribution provides a strong foundation for evaluating detection performance across multiple scales and supports further research on intelligent detection of insulating oil leakage [43,44].
The dataset was mainly collected from real inspection images of power equipment and supplemented with laboratory-constructed leakage scenes. Specifically, 1800 images were obtained from real inspection scenarios, and 200 images were collected under controlled laboratory settings. The real inspection images were collected from five substations or inspection sites, covering several types of oil-filled power equipment, including transformers, current transformers, bushings, radiators, conservators, valves, and flange joints.
Image acquisition was conducted using industrial cameras under both substation and laboratory environments. The real inspection images were collected mainly under sunny weather conditions in both real substation scenes and controlled laboratory scenes. Laboratory images were mainly used to supplement rare leakage patterns, small oil stains, and occlusion cases that are difficult to collect in large quantities from operating substations.

3.2. Performance Evaluation Metrics

To evaluate the effectiveness of the improved YOLOv11s model in detecting insulating oil leakage in power equipment, this study assesses model performance from two critical dimensions: detection accuracy and real-time capability. Specifically, recall (R), precision (Pe), average precision (AP), and inference speed (FPS, frames per second) are employed as the primary evaluation metrics. The Intersection over Union (IoU) thresholds are set to 0.5 and 0.5:0.95, corresponding to the computation of mAP@0.5 and mAP@0.5:0.95, respectively. The partial formula for calculating mAP@0.5:0.95 is given as follows:
R = T P T P + F N
P r e = T P T P + F P
A P = 0 1 P ( R ) d R
F P S = N T
In the equation: TP (True Positive) denotes the number of correctly detected ground truth targets; FP (False Positive) represents the number of incorrect detections; FN (False Negative) refers to the number of missed detections; AP (Average Precision) is defined as the area under the precision–recall curve across different recall levels; N is the total number of inference images; and T denotes the total inference time in seconds.

3.3. Experimental Environment and Parameter Settings

To ensure both training efficiency and model performance, all experiments involving the improved YOLOv11s architecture were conducted in a high-performance deep learning environment. The hardware and software configurations are detailed as follows: the experimental platform was equipped with an NVIDIA GeForce RTX 4060 GPU (8 GB VRAM), 16 GB of system RAM, and ran on Ubuntu 20.04. The deep learning framework used was PyTorch 1.13, with CUDA version 11.7 and Python version 3.9. A summary of the experimental hyperparameters is provided in Table 3.
To further validate the superiority of the proposed model, several representative object detection models were selected as baseline comparisons. To ensure fairness and reproducibility, all models—including YOLOv5s, YOLOv8s, YOLOv11s, and the proposed improved version—were trained under identical hyperparameter settings. Specifically, the input image size was uniformly set to 416 × 416 pixels, the batch size was fixed at 8, the initial learning rate was set to 0.001, the optimizer used was stochastic gradient descent (SGD), and the total number of training epochs was set to 150.
SSD features a streamlined architecture and fast inference speed, making it well-suited for real-time detection scenarios. In contrast, Faster R-CNN achieves higher detection accuracy through region proposal extraction and feature alignment, particularly excelling in the recognition of medium-sized targets [45,46,47]. These two models represent distinct paradigms in object detection and serve as strong baseline comparisons for performance evaluation.

4. Experimental Results and Analysis

4.1. Sensitivity Analysis of SimAMWS Segmentation Configuration

To justify the choice of the 3 × 3 segmentation strategy in SimAMWS, a sensitivity analysis was conducted using different slicing configurations. In this experiment, only the segmentation configuration of SimAMWS was changed, while the network structure, training parameters, dataset split, and evaluation settings were kept the same. U-IoU was not included in this comparison, so that the influence of the slicing strategy could be evaluated independently. For an input image of 416 × 416 pixels, the 2 × 2, 3 × 3, and 4 × 4 configurations correspond to local regions of approximately 208.0 × 208.0, 138.7 × 138.7, and 104.0 × 104.0 pixels, respectively. The 2 × 2 setting preserves more spatial context, but each region still contains a relatively large amount of background information. The 4 × 4 setting provides finer local regions, but it may fragment small and irregular oil leakage areas and introduce additional computational cost. Therefore, the 3 × 3 setting was evaluated as a moderate configuration between local feature enhancement and spatial context preservation.
Table 4 shows that the 3 × 3 configuration provides the best overall performance. The 2 × 2 setting has lower accuracy and FPS than 3 × 3. This is mainly because each sub-region in 2 × 2 is relatively large and still contains considerable background information, which weakens the local attention response to small oil leakage regions. The 4 × 4 setting achieves the highest FPS, but its accuracy decreases because overly fine segmentation may fragment small and irregular leakage targets and reduce the surrounding context needed for discrimination. Therefore, 3 × 3 was adopted as a balanced configuration between local feature enhancement, spatial context preservation, localization capability, and computational efficiency.

4.2. Computational Cost and Comparison with Lightweight Attention Modules

To further evaluate the computational cost of the proposed SimAMWS module, GPU memory consumption and inference latency were measured on the same NVIDIA RTX 4060 platform. All models were tested with an input size of 416 × 416 under the same inference settings. Since the purpose of this comparison is to analyze the attention module itself, only YOLOv11s, YOLOv11s + SimAM, and YOLOv11s + SimAMWS are compared. The results are shown in Table 5.
As shown in Table 5, YOLOv11s has the lowest GPU memory consumption and latency. This is expected because it does not include an additional attention module. The original SimAM increases memory consumption to 746 MB and latency to 11.56 ms, indicating a higher computational burden. In contrast, SimAMWS reduces memory consumption to 681 MB and latency to 10.50 ms compared with SimAM. These results show that SimAMWS is more efficient than the original SimAM module. However, it still introduces a small additional cost compared with the baseline YOLOv11s due to feature-map slicing, regional attention calculation, and feature recombination. Therefore, SimAMWS provides a better accuracy–efficiency trade-off than SimAM, rather than completely eliminating the computational overhead of attention calculation.

4.3. Comparison with Mainstream Models

To comprehensively assess the proposed model’s computational efficiency and structural complexity, a comparative analysis was conducted against mainstream YOLO-based object detection models, including YOLOv5s, YOLOv8s, and YOLOv11s. The comparison focused on three key aspects: the number of parameters, the network depth (i.e., the number of layers), and the number of floating-point operations (GFLOPs) required for forward inference [48].
The number of parameters refers to the total count of all learnable weights within the model. The number of layers represents the complete sequence of computational operations from input to output, primarily including convolutional layers, pooling layers, and fully connected layers. GFLOPs (Giga Floating Point Operations) quantify the total number of floating-point operations—specifically multiply–accumulate operations—required to process a single image, expressed in billions (109) of FLOPs. These metrics collectively reflect the model’s level of architectural efficiency and computational overhead, providing a quantitative basis for evaluating its suitability for real-world deployment. All measurements were obtained using the torchsummary tool within the PyTorch framework. The results are summarized in Table 6.
As shown in Table 6, YOLOv11s achieves a reduction in both the number of convolutional kernels and the overall channel width by incorporating lightweight modules in place of conventional convolutional structures, combined with an optimized feature fusion strategy. In the proposed model, although both the SimAMWS attention mechanism and the U-IoU loss function are integrated—each being simple and parameter-free—only a slight increase in network depth is observed, and the GFLOPs rises marginally to 21.8. This indicates that the architectural enhancements do not introduce model redundancy. Compared to YOLOv8s, which has a significantly higher parameter count, the proposed model reduces GFLOPs by more than 24%, demonstrating superior computational efficiency and greater suitability for real-time inspection in real-world applications.
To evaluate the convergence behavior and training stability of the proposed model, this study compares the loss function trends of several mainstream object detection algorithms during both the training and validation phases. The selected models include the classical SSD and Faster R-CNN, as well as the more recent and high-performing YOLOv5s, YOLOv8s, YOLOv11s, and the proposed improved model. Figure 5 illustrates the variation in loss values on the training and validation sets as a function of the number of training iterations for each model.
Figure 5a and b respectively illustrate the loss function trends for each model on the training and validation sets. Overall, all models show a sharp decline in loss during the first 30 epochs, followed by gradual stabilization—indicating successful initial convergence. However, a more detailed comparison reveals that the proposed model achieves a significant reduction in loss within the first 10 epochs, demonstrating a notably faster convergence rate than the other models. This efficiency can be attributed to the dynamic weighting mechanism of the U-IoU loss function, which prioritizes the optimization of low-quality bounding boxes in the early training stages and progressively shifts focus toward high-quality boxes in later stages. This strategy enables more efficient gradient utilization and supports a gradually refined learning objective. Clear differences are also observed in the final steady-state loss values across models. The proposed model achieves a training loss stabilized around 0.55 and a validation loss near 0.58, both outperforming the baselines. In contrast, YOLOv5s and SSD stabilize at considerably higher values—approximately 0.9/1.0 and 2.0/2.2, respectively—demonstrating the superior convergence behavior and generalization capability of the proposed approach. Further analysis of the training phase between epochs 120 and 150 reveals that the amplitude of loss fluctuations reflects the model’s gradient stability post-convergence. Smaller fluctuations indicate smoother parameter updates and more complete convergence. Among all the compared models, the proposed model exhibits the smallest fluctuation amplitude, indicating superior training stability.
To further validate the overall performance advantages of the proposed model in the task of insulating oil leakage detection, a comparative evaluation was conducted against several mainstream object detection models, including SSD, Faster R-CNN, YOLOv5s, YOLOv8s, and YOLOv11s. The comparison was based on five key metrics: precision (Pre), recall (R), mean Average Precision at IoU threshold 0.5 (mAP@0.5), mean Average Precision across IoU thresholds from 0.5 to 0.95 (mAP@0.5:0.95), and frames per second (FPS). The detailed results are presented in Table 7.
As shown in Table 7, the proposed model achieves the best performance across all accuracy-related metrics. Specifically, it reaches an mAP@0.5 of 97.7% and an mAP@0.5:0.95 of 66.9%, representing improvements of 1.4% and 2.9%, respectively, over the baseline YOLOv11s model. Moreover, despite the integration of an attention mechanism and a refined loss function, the model achieves an inference speed of 96.4 FPS—surpassing both YOLOv5s and YOLOv8s—which demonstrates its strong capability for real-time detection. Overall, the results confirm that the proposed enhancements improve detection accuracy while maintaining real-time performance and training stability, making the model suitable for deployment in power equipment inspection tasks. To further evaluate the model’s robustness, five independent training experiments were conducted. The corresponding results are presented in Figure 6 and Figure 7.
As shown in the figures, the proposed model not only achieves the highest scores across four accuracy-related metrics—precision, recall, mAP@0.5, and mAP@0.5:0.95—but also exhibits significantly shorter error bars compared to the baseline models. This indicates that the model maintains stable performance under varying training conditions. In contrast, although SSD and Faster R-CNN demonstrate certain advantages in recall and FPS, they exhibit noticeably larger error ranges, reflecting limited robustness. Specifically, for the mAP@0.5:0.95 metric, the proposed model maintains an error margin within ±1.0%, whereas Faster R-CNN and YOLOv5s exceed ±1.5%, indicating that the proposed method achieves more accurate and consistent target localization. Furthermore, despite incorporating an attention mechanism and an optimized loss function, the proposed model sustains a high inference speed of 96.4 FPS, with variability confined to ±2.0 FPS. This demonstrates that performance gains were achieved without significantly compromising inference efficiency. Through multiple experimental repetitions and comprehensive error analysis, it is evident that the proposed model consistently outperforms other methods across all evaluation metrics, making it suitable for complex power equipment inspection tasks that demand both high accuracy and high reliability.

4.4. Ablation Study

To evaluate the individual contributions of the SimAMWS attention module and the U-IoU bounding box loss function to the overall detection performance, a series of systematic ablation experiments were conducted based on the YOLOv11s backbone. These experiments compared different combinations of the two components, and the resulting performance was analyzed across five key evaluation metrics. The detailed results are summarized in Table 8.
Table 8 reports the ablation results of the proposed modules. When only U-IoU is introduced, Precision, Recall, mAP@0.5, and mAP@0.5:0.95 increase from 91.6%, 93.0%, 93.3%, and 64.0% to 93.0%, 94.0%, 94.7%, and 65.4%, respectively. Since the network architecture is unchanged, this improvement is mainly attributed to better bounding box regression during training. The FPS remains close to that of the baseline, which is expected because U-IoU is not involved in the inference stage. The standard SimAM module improves mAP@0.5 to 95.2%, but the FPS drops to 86.5. This indicates that its attention calculation brings additional computational cost. In comparison, SimAMWS achieves 96.8% mAP@0.5 and 65.5% mAP@0.5:0.95 while maintaining 95.2 FPS. The result suggests that the slicing strategy improves local feature representation for leakage regions with a smaller impact on inference speed. The best performance is obtained when SimAMWS and U-IoU are used together. The final SA-YOLOv11s model achieves 96.4% Precision, 95.8% Recall, 97.7% mAP@0.5, and 66.9% mAP@0.5:0.95. Compared with the SimAMWS-only model, mAP@0.5 and mAP@0.5:0.95 are further improved by 0.9 and 1.4 percentage points, respectively. The slight FPS difference between SimAMWS and SimAMWS + U-IoU is within the normal fluctuation of inference-time measurement, rather than a change caused by the loss function. Overall, compared with the baseline YOLOv11s, SA-YOLOv11s improves mAP@0.5 by 4.4 percentage points and mAP@0.5:0.95 by 2.9 percentage points, with only a 2.2 FPS decrease. This indicates a practical trade-off between detection accuracy and real-time performance.
To reduce the influence of a single train-validation-test split, a repeated random split experiment was conducted for SA-YOLOv11s. The dataset was randomly divided five times using the same 8:1:1 ratio, and the model was trained and evaluated under identical parameter settings. Since the purpose of this experiment is to verify the stability of the reported performance of the proposed model, only SA-YOLOv11s was evaluated in this repeated-split setting. The repeated random split results for SA-YOLOv11s are summarized in Table 9.

4.5. Detection Result Visualization

To further validate the practicality and robustness of the proposed model under diverse and complex conditions, four representative working scenarios for insulating oil leakage detection in power equipment were selected for visual comparison experiments. These include: (1) small object detection, (2) complex background, (3) multi-object detection, and (4) equipment occlusion. These scenarios closely reflect the typical challenges encountered in actual substation environments, making them both representative and realistic. To comprehensively assess the model’s generalization ability, five mainstream object detection models were selected as baselines. Visual comparisons were conducted on the same set of images, contrasting their detection outputs with those of the proposed model. The results are presented in Figure 8.
In the visualizations, the confidence score reflects the model’s certainty in its predictions—higher values indicate greater confidence that the predicted region contains a true target. As observed, the proposed model performs particularly well in small object detection tasks. Even for extremely small leakage regions located at the image corners—occupying less than 2% of the total image area—the model is able to accurately localize the target with a high confidence score of 0.86, whereas other models either assign low confidence scores or fail to detect the target altogether. In scenarios involving complex background interference, such as stone-paved grounds where the color and texture closely resemble those of oil stains, most models are susceptible to background noise, leading to false positives or significant drops in confidence. In contrast, the proposed model maintains a high confidence level of 0.97, demonstrating strong robustness against background complexity.
In multi-target detection scenarios, where multiple leakage regions are densely distributed and some targets are located in close proximity, conventional models such as SSD tend to generate overlapping bounding boxes, leading to reduced detection clarity. In contrast, the proposed model consistently detects all targets with clear separation and maintains an average confidence score above 0.93, demonstrating strong capability in handling densely packed scenes. In equipment occlusion scenarios—where portions of the leakage areas are obscured by structural components or affected by strong reflective surfaces—Faster R-CNN fails to detect certain targets, while YOLOv11s exhibits noticeable misalignment of bounding boxes. The proposed model, however, accurately localizes even partially occluded leakage regions, with confidence scores consistently around 0.92, underscoring its robustness in complex industrial visual environments.
Comprehensive analysis indicates that the proposed model achieves accurate detection of small, densely distributed, and partially occluded targets across all four representative scenarios, consistently outperforming mainstream object detection algorithms. These results validate the effectiveness of the proposed improvements in enhancing detection precision under complex and challenging conditions. To more intuitively demonstrate the feature attention capabilities of different models under various detection scenarios, this study introduces Grad-CAM visualization for comparative analysis [49]. The resulting attention heatmaps reveal how each model responds to representative scenes, as shown in the figure. The selected scenarios are consistent with the previous visualizations and cover four typical conditions: small objects, complex backgrounds, multiple targets, and equipment occlusion. The comparison includes the proposed improved model alongside five mainstream object detection models: SSD, Faster R-CNN, YOLOv11s, YOLOv8s, and YOLOv5s.
As shown in Figure 9, SA-YOLOv11s produces more concentrated activation regions around oil leakage areas than the comparison models. In small-target and complex-background scenes, the heatmaps of SSD and YOLOv5s are more dispersed, while the proposed model shows stronger responses near the annotated leakage regions. In multi-target scenes, SA-YOLOv11s separates adjacent leakage regions more clearly. In occlusion scenes, the activation regions are mainly distributed around the visible parts of the leakage area. These results suggest that SimAMWS helps the network focus on leakage-related local features under challenging visual conditions. Nevertheless, missed detections and false detections may still occur in some difficult scenes. For example, extremely small or heavily occluded oil stains may not be recognized, and low-contrast leakage regions may only be partially detected. In addition, rust, dust, shadows, reflections, or water-like marks may be confused with oil leakage. These cases show that SA-YOLOv11s still needs to be improved under complex field conditions.

5. Conclusions

This study proposes SA-YOLOv11s for insulating oil leakage detection in power equipment. The method is designed to address common detection difficulties in field images, including small leakage regions, dense oil stains, equipment occlusion, and complex background interference. Based on YOLOv11s, two targeted improvements are introduced: the SimAMWS attention module and the U-IoU loss function.
(1) The main contribution of SimAMWS is to improve local feature representation. By dividing the feature map into local regions and calculating attention responses within each region, SimAMWS helps the model focus on small and irregular leakage areas while reducing the influence of large background regions. Compared with the original SimAM module, the slicing strategy reduces part of the attention-related computational cost.
(2) U-IoU further improves the bounding box regression process. Its dynamic scaling strategy provides a coarse-to-fine optimization mechanism during training. In the early stage, the expanded predicted boxes improve the tolerance of low-quality predictions and help stabilize training. In the later stage, the contracted boxes impose stricter localization constraints, encouraging more accurate boundary alignment. This is useful for oil leakage targets with small size, irregular shape, and partial occlusion.
(3) Experimental results show that SA-YOLOv11s achieves 97.7% mAP@0.5 and 66.9% mAP@0.5:0.95, outperforming the baseline YOLOv11s and other compared detection models. The model contains 9.46 million parameters and requires 21.8 GFLOPs, while maintaining an inference speed of 96.4 FPS. Although the FPS is slightly lower than that of the original YOLOv11s, the decrease is small compared with the improvement in detection accuracy. These results indicate that the proposed method provides a practical balance between accuracy and real-time performance for power equipment inspection.
(4) The visualization results and Grad-CAM heatmaps show that SA-YOLOv11s produces more concentrated responses around leakage-related regions under small-target, complex-background, and occlusion conditions. This supports the effectiveness of combining local attention enhancement with improved bounding box regression.
Several limitations should be noted.
(1) This study focuses only on insulating oil leakage in power equipment. Other liquids, such as rainwater, condensed water, cleaning liquid, or lubricant stains, were not used as independent detection categories. Therefore, the proposed model should be regarded as an oil leakage detector rather than a general liquid-stain classifier. In real inspection scenes, visually similar regions such as water marks, rust, dust, shadows, and reflections may still lead to false detections.
(2) The dataset size is still limited compared with large-scale object detection datasets. Although the repeated random split experiment reduces the influence of a single train-test split, it cannot fully replace validation on larger independent field datasets. Moreover, the proposed model has not yet been fully evaluated on external datasets or completely unseen substations. Future work will collect more independent field samples from additional substations, equipment types, weather conditions, and imaging devices to evaluate the real-world generalization ability of the proposed model.

Author Contributions

Conceptualization, D.L. and C.L.; Methodology, D.L. and T.Z.; Software, Z.W. and S.Z.; Validation, C.L. and S.Z.; Formal analysis, D.L.; Investigation, Z.W.; Resources, S.Z., Y.Y.; Data curation, Y.Y.; Writing—original draft preparation, T.Z.; Writing—review and editing, C.L. and X.W.; Visualization, S.Z.; Supervision, X.W.; Project administration, X.W.; Funding acquisition, X.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Shandong Provincial Key Research and Development Program (Innovation Capacity Enhancement Project for Technology-based Small and Medium-sized Enterprises) under Grant No. 2025TSGCCZZB0070.

Data Availability Statement

Data available on request due to restrictions of privacy and legal reasons.

Acknowledgments

The authors would like to thank Shandong University for technical assistance.

Conflicts of Interest

The all authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
Faster R-CNNFaster Region-based Convolutional Neural Network
YOLOYou Only Look Once
SSDSingle Shot MultiBox Detector
DETRDEtection TRansformer,
PFDAL-DETRProgressive Feature Decoupling and Alignment Learning with DETR
SimAMSimple Attention Module
SimAMWSSimple Attention Module With Slicing
U-IoUUnified Intersection over Union
C3k2Cross Stage Partial with kernel size 2
SPPFSpatial Pyramid Pooling—Fast
C2PSAConvolutional block with Parallel Spatial Attention
ConvConvolutional layers
CIoUComplete IoU
RRecall
PePrecision
APAverage Precision
FPSFrames Per Second
TPTrue Positive
FPFalse Positive
FNFalse Negative
SGDStochastic Gradient Descent
GFLOPsGiga Floating Point Operations

References

  1. Xu, L.; Song, Y.; Zhang, W.; An, Y.; Wang, Y.; Ning, H. An efficient foreign objects detection network for power substation. Image Vis. Comput. 2021, 109, 104159. [Google Scholar] [CrossRef]
  2. Yang, Q.; Ma, S.; Guo, D.; Wang, P.; Lin, M.; Hu, Y. A small object detection method for oil leakage defects in substations based on improved faster-RCNN. Sensors 2023, 23, 7390. [Google Scholar] [CrossRef] [PubMed]
  3. Yao, H.; Lv, K.; Yan, S.; Xing, M.; Lou, Z.; Ren, W. Simulation Study on Fire Combustion Process of Oil Immersed Transformer. Int. J. Heat Technol. 2023, 41, 455. [Google Scholar] [CrossRef]
  4. Tiwari, R.; Agrawal, P.; Bawa, S.; Karadbhajne, V.; Agrawal, A.J. Soil contamination by waste transformer oil: A review. Mater. Today Proc. 2023, 72, 306–310. [Google Scholar] [CrossRef]
  5. Wang, B.; Guo, R.; Li, B.; Han, L.; Sun, Y.; Wang, M. SmartGuard: An autonomous robotic system for inspecting substation equipment. J. Field Robot. 2012, 29, 123–137. [Google Scholar] [CrossRef]
  6. Jin, L.; Kim, D.; Abu-Siada, A.; Kumar, S. Oil-immersed power transformer condition monitoring methodologies: A review. Energies 2022, 15, 3379. [Google Scholar] [CrossRef]
  7. Qian, Y.; Wang, Q.; Zhao, Y.; Yang, D.; Yang, Z. Ultrasonic signal processing method for transformer oil based on improved EMD. In International Conference on Computational Finance and Business Analytics; Springer: Cham, Switzerland, 2023; pp. 147–157. [Google Scholar]
  8. Hashim, A.S.; Grămescu, B.; Niţu, C. Pipe leakage detection using humidity and microphone sensors—A review. In International Conference of Mechatronics and Cyber-MixMechatronics–2018; Springer: Cham, Switzerland, 2019; pp. 129–137. [Google Scholar]
  9. Zhang, T.; Dai, J. Electric power intelligent inspection robot: A review. J. Phys. Conf. Ser. 2021, 1750, 012023. [Google Scholar] [CrossRef]
  10. Duan, J.; He, Y.; Du, B.; Ghandour, R.M.R.; Wu, W.; Zhang, H. Intelligent localization of transformer internal degradations combining deep convolutional neural networks and image segmentation. IEEE Access 2019, 7, 62705–62720. [Google Scholar] [CrossRef]
  11. Xia, C.; Ren, M.; Li, Q.; Xing, Y.; Dong, M.; Zhang, T.; Miao, J. Locating the oil leakage on power equipment via ultraviolet-induced hyperspectral imaging technology. IEEE Trans. Instrum. Meas. 2023, 72, 4503912. [Google Scholar] [CrossRef]
  12. Lu, L.; Ichimura, S.; Moriyama, T.; Yamagishi, A.; Rokunohe, T. A system to detect small amounts of oil leakage with oil visualization for transformers using fluorescence recognition. IEEE Trans. Dielectr. Electr. Insul. 2017, 24, 1249–1255. [Google Scholar] [CrossRef]
  13. He, K.; Zhang, X.; Ren, S.; Sun, J. Spatial pyramid pooling in deep convolutional networks for visual recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2015, 37, 1904–1916. [Google Scholar] [CrossRef] [PubMed]
  14. Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; Berg, A.C. Ssd: Single shot multibox detector. In Computer Vision–ECCV 2016, Proceedings of the 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016; Proceedings, Part I 14; Springer: Cham, Switzerland, 2016; pp. 21–37. [Google Scholar]
  15. Zhai, S.; Shang, D.; Wang, S.; Dong, S. DF-SSD: An improved SSD object detection algorithm based on DenseNet and feature fusion. IEEE Access 2020, 8, 24344–24357. [Google Scholar] [CrossRef]
  16. 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]
  17. Seflek, I.; Barstuğan, M. Radar-Based Fall Detection Using Micro-Doppler Signatures: A Comparative Analysis of YOLO Architectures. Sensors 2026, 26, 2650. [Google Scholar] [CrossRef]
  18. Girshick, R. Fast r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile, 7–13 December 2015; pp. 1440–1448. [Google Scholar]
  19. Ji, C.; Liu, J.; Zhang, F.; Jia, X.; Song, Z.; Liang, C.; Huang, X. Oil leak detection in substation equipment based on PFDAL-DETR network. J. Real-Time Image Process. 2025, 22, 22. [Google Scholar] [CrossRef]
  20. Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-end object detection with transformers. In European Conference on Computer Vision; Springer: Cham, Switzerland, 2020; pp. 213–229. [Google Scholar]
  21. Wang, X.; Hu, H.; Hao, X.; Ma, W. MSW-Mamba-Det: Multi-Scale Windowed State-Space Modeling for End-to-End Defect Detection in Photovoltaic Module Electroluminescence Images. Sensors 2026, 26, 2616. [Google Scholar] [CrossRef]
  22. Terven, J.; Córdova-Esparza, D.-M.; Romero-González, J.-A. A comprehensive review of yolo architectures in computer vision: From yolov1 to yolov8 and yolo-nas. Mach. Learn. Knowl. Extr. 2023, 5, 1680–1716. [Google Scholar] [CrossRef]
  23. Wang, G.; Chen, Y.; An, P.; Hong, H.; Hu, J.; Huang, T. UAV-YOLOv8: A small-object-detection model based on improved YOLOv8 for UAV aerial photography scenarios. Sensors 2023, 23, 7190. [Google Scholar] [CrossRef]
  24. He, L.-H.; Zhou, Y.-Z.; Liu, L.; Cao, W.; Ma, J.-H. Research on object detection and recognition in remote sensing images based on YOLOv11. Sci. Rep. 2025, 15, 14032. [Google Scholar] [CrossRef] [PubMed]
  25. Aydin, B.; Singha, S. Drone detection using yolov5. Eng 2023, 4, 416–433. [Google Scholar] [CrossRef]
  26. Luo, Z.; Wang, C.; Qi, Z.; Luo, C. LA_YOLOv8s: A lightweight-attention YOLOv8s for oil leakage detection in power transformers. Alex. Eng. J. 2024, 92, 82–91. [Google Scholar] [CrossRef]
  27. Yang, L.; Zhang, R.-Y.; Li, L.; Xie, X. Simam: A simple, parameter-free attention module for convolutional neural networks. In International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2021; pp. 11863–11874. [Google Scholar]
  28. Cai, Z.; Qiao, X.; Zhang, J.; Feng, Y.; Hu, X.; Jiang, N. Repvgg-simam: An efficient bad image classification method based on RepVGG with simple parameter-free attention module. Appl. Sci. 2023, 13, 11925. [Google Scholar] [CrossRef]
  29. Wang, J.; Wu, J.; Wu, J.; Wang, J.; Wang, J. YOLOv7 optimization model based on attention mechanism applied in dense scenes. Appl. Sci. 2023, 13, 9173. [Google Scholar] [CrossRef]
  30. Luo, X.; Cai, Z.; Shao, B.; Wang, Y. Unified-IoU: For High-Quality Object Detection. arXiv 2024, arXiv:2408.06636. [Google Scholar]
  31. Zheng, Z.; Wang, P.; Liu, W.; Li, J.; Ye, R.; Ren, D. Distance-IoU loss: Faster and better learning for bounding box regression. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Palo Alto, CA, USA, 2020; pp. 12993–13000. [Google Scholar]
  32. Zang, D.; Su, W.; Zhang, B.; Liu, H. DCANet: Dense Convolutional Attention Network for infrared small target detection. Measurement 2025, 240, 115595. [Google Scholar] [CrossRef]
  33. Gao, J.; Guo, Y.; Gao, G. Sim-ConvFormer: A lightweight fault diagnosis framework incorporating SimAM and external attention. J. Supercomput. 2025, 81, 603. [Google Scholar] [CrossRef]
  34. Zhang, J.; Lan, X.; Wang, S.; Liu, W. EP-YOLO: A Pipeline Leak Detection Algorithm Based on Improved YOLOv7. IEEE Access 2024, 12, 198132–198141. [Google Scholar] [CrossRef]
  35. 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]
  36. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada, 11–17 October 2021; pp. 10012–10022. [Google Scholar]
  37. Wang, X.; Girshick, R.; Gupta, A.; He, K. Non-local neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 7794–7803. [Google Scholar]
  38. 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]
  39. Wang, Q.; Wu, B.; Zhu, P.; Li, P.; Zuo, W.; Hu, Q. ECA-Net: Efficient channel attention for deep convolutional neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 11534–11542. [Google Scholar]
  40. Zhang, Y.-F.; Ren, W.; Zhang, Z.; Jia, Z.; Wang, L.; Tan, T. Focal and efficient IOU loss for accurate bounding box regression. Neurocomputing 2022, 506, 146–157. [Google Scholar] [CrossRef]
  41. 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]
  42. Gevorgyan, Z. SIoU loss: More powerful learning for bounding box regression. arXiv 2022, arXiv:2205.12740. [Google Scholar] [CrossRef]
  43. Bożko, A.; Ambroziak, L. Influence of insufficient dataset augmentation on IoU and detection threshold in CNN training for object detection on aerial images. Sensors 2022, 22, 9080. [Google Scholar] [CrossRef]
  44. Salari, A.; Djavadifar, A.; Liu, X.; Najjaran, H. Object recognition datasets and challenges: A review. Neurocomputing 2022, 495, 129–152. [Google Scholar] [CrossRef]
  45. Shobaki, W.A.; Milanova, M. A Comparative Study of YOLO, SSD, Faster R-CNN, and More for Optimized Eye-Gaze Writing. Sci 2025, 7, 47. [Google Scholar] [CrossRef]
  46. Akshatha, K.; Karunakar, A.K.; Shenoy, S.B.; Pai, A.K.; Nagaraj, N.H.; Rohatgi, S.S. Human detection in aerial thermal images using faster R-CNN and SSD algorithms. Electronics 2022, 11, 1151. [Google Scholar] [CrossRef]
  47. Li, M.; Zhang, Z.; Lei, L.; Wang, X.; Guo, X. Agricultural greenhouses detection in high-resolution satellite images based on convolutional neural networks: Comparison of faster R-CNN, YOLO v3 and SSD. Sensors 2020, 20, 4938. [Google Scholar] [CrossRef]
  48. Zhuang, Y.; Liu, J.; Zhao, H.; Ma, L.; Fang, Z.; Li, L.; Wu, C.; Cui, W.; Liu, Z. A deep learning framework based on structured space model for detecting small objects in complex underwater environments. Commun. Eng. 2025, 4, 24. [Google Scholar] [CrossRef] [PubMed]
  49. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
Figure 1. Architecture of the YOLOv11s model.
Figure 1. Architecture of the YOLOv11s model.
Sensors 26 03255 g001
Figure 2. Schematic diagram of the SimAMWS module.
Figure 2. Schematic diagram of the SimAMWS module.
Sensors 26 03255 g002
Figure 3. Architecture of the improved YOLOv11s model.
Figure 3. Architecture of the improved YOLOv11s model.
Sensors 26 03255 g003
Figure 4. Width–height distribution of bounding boxes in the dataset.
Figure 4. Width–height distribution of bounding boxes in the dataset.
Sensors 26 03255 g004
Figure 5. Loss curves of different detection models on training and validation sets. (a) Training loss curves. (b) Validation loss curves.
Figure 5. Loss curves of different detection models on training and validation sets. (a) Training loss curves. (b) Validation loss curves.
Sensors 26 03255 g005
Figure 6. Bar chart comparison of detection metrics across different models.
Figure 6. Bar chart comparison of detection metrics across different models.
Sensors 26 03255 g006
Figure 7. Radar chart comparison of detection metrics across different models.
Figure 7. Radar chart comparison of detection metrics across different models.
Sensors 26 03255 g007
Figure 8. Visual comparison of oil leakage detection results under typical working conditions across different models.
Figure 8. Visual comparison of oil leakage detection results under typical working conditions across different models.
Sensors 26 03255 g008aSensors 26 03255 g008b
Figure 9. Grad-CAM heatmap visualization comparison of different models under typical detection scenarios.
Figure 9. Grad-CAM heatmap visualization comparison of different models under typical detection scenarios.
Sensors 26 03255 g009
Table 1. Summary of existing oil leakage detection methods.
Table 1. Summary of existing oil leakage detection methods.
Parameter NameMeritsLimitations
Manual inspectionSimple and directLow efficiency; subjective
Sensor-based methodsReal-time signal monitoringSensitive to environment
Image-based methodsProvide visual evidenceSmall targets remain challenging
Table 2. Comparison of related methods.
Table 2. Comparison of related methods.
ModuleMeritsLimitations
Spatial attentionHighlights key regionsGlobal maps may weaken small targets
ECA [39]LightweightLimited local spatial modeling
Coordinate AttentionPreserves position informationAdds coordinate encoding operations
Non-local blockCaptures long-range dependencyHigh memory and computation cost
SimAMNo learnable parametersGlobal calculation may be affected by background
SimAMWSEnhances small-target responseRequires predefined slicing
EIoU [40]Improves geometric regressionNo dynamic scaling during training
WIoU [41]Adjusts sample contributionSensitive to focusing strategy
SIoU [42]Improves geometric alignmentAdds extra geometric terms
U-IoUCoarse-to-fine regressionFurther comparison on this dataset is needed
Table 3. Hyperparameter settings for the improved YOLOv11s model.
Table 3. Hyperparameter settings for the improved YOLOv11s model.
Parameter NameValue
Input Image Size416 × 416
Batch Size8
Initial Learning Rate0.001
Optimization AlgorithmSGD
Number of Training Epochs150
Bounding Box Loss FunctionU-IoU
Table 4. Sensitivity analysis of different segmentation configurations in SimAMWS.
Table 4. Sensitivity analysis of different segmentation configurations in SimAMWS.
SegmentationPrecision (%)Recall (%)mAP@0.5 (%)mAP@0.5:0.95 (%)FPS
2 × 295.594.396.565.393.7
3 × 395.894.196.865.595.2
4 × 494.993.795.964.896.6
Table 5. Computational cost comparison of different models.
Table 5. Computational cost comparison of different models.
SegmentationGPU Memory (MB)Latency (ms)
YOLOv11s61210.14
YOLOv11s + SimAM74611.56
YOLOv11s + SimAMWS68110.50
Table 6. Comparison of model parameters, network depth, and computational complexity across object detection models.
Table 6. Comparison of model parameters, network depth, and computational complexity across object detection models.
ModelParameters (M)Number of LayersGFLOPs
YOLOv5s7.2321316.5
YOLOv8s11.222528.8
YOLOv11s9.4631921.7
Our model9.4632221.8
Table 7. Performance comparison of detection models on the test set.
Table 7. Performance comparison of detection models on the test set.
ModelPrecision (%)Recall (%)mAP@0.5 (%)mAP@0.5:0.95 (%)FPS
Our model96.495.897.766.996.4
SSD64.185.267.824.760.1
Faster-RCNN77.682.578.038.524.6
YOLOv11s91.693.093.364.098.6
YOLOv8s95.794.296.665.294.7
YOLOv5s90.892.893.162.581.3
Table 8. Impact of each improvement module on detection performance in the ablation study.
Table 8. Impact of each improvement module on detection performance in the ablation study.
ModelImproved ModulePrecision (%)Recall (%)mAP@0.5 (%)mAP@0.5:0.95 (%)FPS
YOLOv11sNone91.693.093.364.098.6
YOLOv11s+U-IoU93.094.094.765.498.4
YOLOv11s+SimAM93.593.695.264.786.5
YOLOv11s+SimAMWS95.894.196.865.595.2
YOLOv11s+SimAMWS + U-IoU96.495.897.766.996.4
Table 9. Repeated random split results of SA-YOLOv11s.
Table 9. Repeated random split results of SA-YOLOv11s.
RunPrecision (%)Recall (%)mAP@0.5 (%)mAP@0.5:0.95 (%)
196.495.897.766.9
296.195.597.466.5
396.695.797.867.0
495.995.397.266.2
596.395.697.566.6
Mean ± Std96.3 ± 0.395.6 ± 0.297.5 ± 0.266.6 ± 0.3
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

Liu, D.; Liu, C.; Wang, Z.; Zhang, S.; Yang, Y.; Zhao, T.; Wang, X. SA-YOLOv11s: A Slicing-Attention YOLOv11s with U-IoU for Oil Leakage Detection in Power Equipment. Sensors 2026, 26, 3255. https://doi.org/10.3390/s26103255

AMA Style

Liu D, Liu C, Wang Z, Zhang S, Yang Y, Zhao T, Wang X. SA-YOLOv11s: A Slicing-Attention YOLOv11s with U-IoU for Oil Leakage Detection in Power Equipment. Sensors. 2026; 26(10):3255. https://doi.org/10.3390/s26103255

Chicago/Turabian Style

Liu, Daoyuan, Chenlei Liu, Zhijuan Wang, Shiji Zhang, Yulong Yang, Tong Zhao, and Xiaolong Wang. 2026. "SA-YOLOv11s: A Slicing-Attention YOLOv11s with U-IoU for Oil Leakage Detection in Power Equipment" Sensors 26, no. 10: 3255. https://doi.org/10.3390/s26103255

APA Style

Liu, D., Liu, C., Wang, Z., Zhang, S., Yang, Y., Zhao, T., & Wang, X. (2026). SA-YOLOv11s: A Slicing-Attention YOLOv11s with U-IoU for Oil Leakage Detection in Power Equipment. Sensors, 26(10), 3255. https://doi.org/10.3390/s26103255

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