Substations, as critical nodes for power transmission and distribution, play a pivotal role in ensuring the stability and security of the entire power grid. With the ever-increasing demand for electricity and the growing complexity of grid structures, traditional manual inspection methods for substations can no longer meet the requirements for efficient and safe operation and maintenance. The advent of automated inspection systems has brought revolutionary changes to the power industry. These systems utilize advanced sensor technology, image processing techniques, and artificial intelligence algorithms to achieve real-time monitoring and fault diagnosis of substation equipment. Among these, the recognition of cable-to-terminal connection relationships is a key task for automated inspection systems, and its accuracy directly impacts the system’s diagnostic capabilities and fault prevention levels. However, traditional methods face numerous limitations when dealing with complex power environments, such as inadequate recognition performance under conditions of significant perspective angles and geometric distortions. This paper proposes a cable-to-terminal connection relationship recognition method based on the YOLOv8-pose model. The YOLOv8-pose model combines object detection and pose estimation techniques, significantly improving detection accuracy and real-time performance in environments with small targets and dense occlusions through optimized feature extraction algorithms and enhanced receptive fields. The model achieves an average inference time of 74 milliseconds on the test set, with an accuracy of 92.8%, a recall rate of 91.5%, and an average precision mean of 90.2%. Experimental results demonstrate that the YOLOv8-pose model performs excellently under different angles and complex backgrounds, accurately identifying the connection relationships between terminals and cables, providing reliable technical support for automated substation inspection systems. This research offers an innovative solution for automated substation inspection systems, with significant application prospects.