Improved YOLOv5s model for key components detection of power transmission lines

Chen Chen, Guowu Yuan, Hao Zhou, Yi MaarXiv 2025 · DOI

Introduction

The inspection of high-voltage power transmission lines is critical for maintaining grid stability, yet it presents significant logistical and safety challenges. Manual inspections across thousands of miles of rugged terrain are both hazardous and expensive. While Unmanned Aerial Vehicles (UAVs) offer a data-rich alternative for monitoring, automated detection systems must overcome three primary hurdles: extreme scale variance among components, complex environmental backgrounds (such as forests or urban sprawl), and inherent class imbalances in infrastructure datasets.

Examples of the five labeled target categories: insulators, nails, poles, transmission towers, and vehicles.

Methodology

To address these challenges, this research proposes an improved YOLOv5s architecture optimized for real-time edge deployment on UAVs. The authors introduced three key surgical improvements to the baseline model:

  1. 1-IoU K-means Clustering: Traditional Euclidean distance metrics used for anchor box clustering often fail to capture the extreme aspect ratios of power poles and towers. By switching to a 1-Intersection over Union (IoU) distance metric, the model generates anchor boxes that much more accurately fit the "skinny" geometry of transmission infrastructure.
  2. Convolutional Block Attention Module (CBAM): To help the model ignore background noise, the authors integrated CBAM into the backbone. This module utilizes both Channel Attention (deciding what features are important) and Spatial Attention (deciding where in the image to look), effectively acting as a spotlight on salient transmission components while suppressing irrelevant spatial information from nature or buildings.
  3. Focal Loss: To solve the class imbalance problem, the standard loss function was replaced with Focal Loss. This mathematically down-weights easy, frequent examples and forces the model to focus on learning difficult, rare cases, such as specific vehicles or small hardware components.

Dataset and Analysis

The primary dataset was provided by the Yunnan Limited Company of China Southern Power Grid, consisting of 4,290 high-resolution images augmented to a total of 11,335 images. The dataset includes five distinct classes: screws (nails), poles, insulators, transmission towers, and vehicles.

Data distribution showing object aspect ratios (left) and class instance counts (right), highlighting scale variance and class imbalance.

As illustrated in the data analysis, the dataset exhibits significant variation in object dimensions and a heavy imbalance toward common components like nails and towers compared to vehicles. The proposed architectural tweaks were specifically designed to handle these data characteristics.

Results and Discussion

The improved YOLOv5s model achieved a Mean Average Precision (mAP) of 98.1%, representing a 3.4% improvement over the baseline YOLOv5s. Performance metrics include a precision of 97.5% and a recall of 94.4%. In terms of inference speed, the model clocked 84.8 FPS on an NVIDIA GTX 2080Ti. While slightly slower than the original YOLOv5s (99 FPS) due to the added attention modules, it remains significantly faster than alternative architectures like Faster R-CNN (60.6 FPS) and SSD (67.9 FPS), making it ideal for real-time deployment.

Qualitative analysis via heatmaps confirms that the improved model focuses much more tightly on actual components, whereas baseline models often "leak" attention into the surrounding sky or vegetation.

Conclusion

By tailoring the YOLOv5s architecture to the geometric and environmental constraints of power line inspection, this research provides a robust solution for automated infrastructure monitoring. While the model is excellent at detecting components, future work will focus on fine-grained identification, such as automated defect diagnosis for cracked insulators or flashover discharges, to further enhance the utility of UAV-based inspection systems.

Summary updated

BibTeX
@misc{chen2025improved,
  author = {Chen Chen and Guowu Yuan and Hao Zhou and Yi Ma},
  title = {{Improved YOLOv5s model for key components detection of power transmission lines}},
  year = {2025},
  eprint = {2502.06127},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.06127},
}
Figure