# Transmission Line Condition Monitoring Method Based on Binocular Vision and Edge Computing for Line Changing Robot

Authors: Zheng Lu; Jiazhen Duan; Xiaoqiang Chen; Yang Chen
Journal: Journal of Robotics
 (2023)

---

## Abstract

Efficient and accurate state detection of transmission cables is an important means to ensure reliable transmission. Aiming to realize fast and efficient transmission cable state analysis with the help of a binocular vision tool on a loop dismantling robot, this paper proposes a transmission cable state recognition method combining motion control and image segmentation technology. In this method, the fuzzyPID control method is adopted to ensure that the wire removal robot can realize high-precision and rapid response control and effectively improve the collection quality of the cable image sample set. Meanwhile, aiming to achieve faster and more efficient data acquisition and state analysis, the state analysis model is sunk to the edge side, and the cable state detection and recognition model is constructed based on the fast RCNN model at the edge of the network to realize the in-depth extraction of feature information, enhance the transmission cable state recognition effect of the state detection model, and improve the response analysis speed of the model. The simulation results show that the accuracy of the proposed method is 97.54%, and its calculation time is 1.034 s, which can effectively realize the analysis and research of transmission cable state under complex working conditions.


---

## Body

## 1. Introduction

After the high-voltage transmission line has been exposed to the outside and has been infringed by the external environment, such as rainstorms and lightning, for a long time, it is very prone to conductor strand breakage, insulator contamination, hardware damage, bolt loosening, and other phenomena. If it is not found and maintained in time, it will threaten the transmission stability of the transmission line, cause regional power failures, and bring huge economic losses [1–3].Aiming to ensure the stable operation of the power system and reduce the labor intensity of line maintenance operators, cable condition monitoring has become the focus of the electrical field in recent years [4].At present, there are three common inspection methods [5, 6]. The first is the manual visual inspection method. The inspectors can accurately judge the line status by observing at a close distance on the site, but the staff needs to walk in the mountainous area. The inspection frequency is relatively low and the work intensity is high. The second is the manned helicopter aerial survey method, which can realize more efficient cable state identification, but it has the disadvantages of high cost and dangerous flight in mountainous areas. The third way is Unmanned Aerial Vehicle (UAV) patrol inspection, but it has high requirements for the weather, so it is difficult to control a UAV in the case of strong wind [7].Compared with traditional inspection methods, the line-changing robot that can climb the power line can climb the power line with a camera and infrared equipment at a certain speed, cross various obstacles on the power line and inspect the power line and various fittings on it, which has the characteristics of lower inspection cost and higher inspection efficiency [8, 9].Because the line-changing robot can complete tasks that cannot be completed manually and has high precision and efficiency, its great value has attracted numerous scientific research institutions to use it as the main research object [10]. It can improve the shortcomings of the original inspection method, reduce the maintenance cost of the transmission line, and complete the line inspection at a high frequency, greatly improving the performance of the power system [11].In recent years, artificial intelligence technology and machine learning technology have been developed by leaps and bounds, which provides a new solution for intelligent line inspection of line-changing robots [12, 13]. The image data file is obtained through the sensor of the image acquisition terminal, and the feature extraction and learning of the sample data information are realized based on the multi-layer network model, so as to realize the condition monitoring and analysis of the transmission cable according to the training model [14–16]. At present, some scholars have carried out an analysis of the cable state based on a deep network model. Reference [17] Based on convolutional neural networks, feature extraction and accurate identification of high-voltage transmission lines are carried out to judge the abnormal state of high-voltage lines. Reference [18] takes the mask region convolutional neural network (RCNN) model as the basic network to realize the identification, judgment, and analysis of foreign matters in transmission cables. Reference [19] adopts the combination of a fast smooth tracking algorithm and a deep learning network to realize the identification and analysis of transmission equipment based on a UAV terminal. Reference [20] adopts content-based image retrieval technology to build a monitoring system for transmission lines so as to provide reliable support for high-voltage transmission. However, we should also see that, due to the limitations of the working environment of the transmission cable and the complex motion environment of the robot, aiming to ensure the collection of high-quality cable state sample data sets, there is an urgent need for reliable and stable control methods to provide a reliable guarantee for the motion of the robot [21]. At the same time, for the state analysis model, accurate and complete information feature extraction is the key support to improving the intelligent line inspection of robot cables [22].Efficient and fast transmission line state analysis is an important guarantee for long-distance transmission. From the point of view of robot motion stability and image analysis optimization, we propose a method for monitoring and analyzing the status of power transmission lines based on motion control technology and a deep network model. The innovations of this method are as follows:(1)
To provide stable mobile support for cable state acquisition and image analysis, firstly, the fuzzyPID control method is used to realize the motion trajectory control of the line removal and replacement robot, and the weighted average method is used to solve the fuzzy process to further support the smooth and accurate control of the motion mechanism and provide a reliable motion guarantee for the robot;(2)
In order to realize more rapid and accurate cable image analysis, image analysis and recognition models are built based on the fast RCNN model to strengthen the depth acquisition ability of information features, optimize the model loss function, further reduce the recognition error of model training and testing, and extract the information features of the collected images in depth.


## 2. Motion Control of the Line-Changing Robot Based on Binocular Vision

A high-quality image sample set is an important prerequisite for efficient analysis of the cable state recognition network model. Aiming to ensure that the robot can stably collect the actual transmission line image, we optimize the robot motion control method to ensure its stable and controllable motion. Figure1 is a schematic diagram of the motion working scene of the wire removal robot.Figure 1
Working scene diagram of the intelligent robot system for disassembly and replacement line.Even if the overhead cables in mountainous areas are tightened, it is difficult to achieve the goal of being parallel to the ground. When the robot travels on an inclined cable, its stress is shown in Figure2.Figure 2
Force analysis of the wire dismantling robot.It is not difficult to analyze that if (1) holds, the robot can be stable on the cable without slipping.(1)f=gx.Here,f is the comprehensive force provided by the wire hanging mechanism, gx is the component of gravity g, and the size of gx depends on the inclination of the cable. In order to make the robot travel in the arrow direction of f on the cable, the comprehensive force is provided by the wire hanging mechanism f>gx.


### 2.1. Determination of the Target Coordinate System

In this paper, the binocular camera is applied to the line patrol robot, and the target coordinates in the three-dimensional coordinate system of the camera are uniformly transformed into the coordinates in the robot’s coordinate system, that is, the coordinate transformation relationship of the line patrol robot should be found through hand-eye calibration.If the coordinate point of the identified target in the manipulator world coordinate system isx1,y1,z1, the corresponding coordinate in the camera coordinate system is x2,y2,z2. The two can coincide through rotation and translation. The transformation relationship expression is as follows:(2)x1y1z1=Rx2y2z2+T,where R is the orthogonal identity matrix and belongs to the rotation matrix of the coordinate system, T is the column vector, which belongs to the translation matrix of the coordinate system.The rotation of the coordinate system is divided into three steps; that is, the rotation angles around thex axis, y axis, and z axis are θ, σ, and ω, respectively. Then the rotation amount of each time is described as follows:(3)Rx=1000cosθ−sinθ0sinθcosθ,Ry=cosσ0sinσ010−sinσ01,Rz=cosω−sinω0sinωcosω0001.Among them, there isR=RxRyRz. In addition, the translation matrix T indicates that the translation distances on the x axis, y axis, and z axis of the coordinate system are a,b, and c, respectively. The expression is described as(4)T=abc.Since the relative position between the binocular camera and the line patrol robot always keeps one point, only the unknown parametersR and T need to be solved to find the changing relationship between the point in the camera coordinate system and the coordinate system of the line patrol robot.


### 2.2. FuzzyPID Control

The motion mechanism of the line patrol robot is affected by factors such as motor load change, connector clearance, mechanism wear, and external interference. Its motion mechanism parameters may change at any time, and the whole system has a certain time variability [23, 24].In the motion mechanism of the line inspection robot, the whole system is nonlinear and unpredictable. The key to fuzzyPID is to dynamically change the three important parameters of the PID process in the control process by combining the fuzzy algorithm to make the control more accurate and stable.The traditionalPID control method is difficult to achieve the expected control effect, and the conventional PID needs to establish an accurate mathematical model to set the parameters of the motion mechanism, which is quite complex and not practical. Therefore, we use the fuzzy PID control method to control the robot to meet the needs of different degrees of error for PID parameter self-adjustment so as to improve the accuracy and dynamic response of the control system.The principle of fuzzyPID control is shown in Figure 3. The deviation and deviation change rate between the expected motion and the actual motion of the motion mechanism are taken as the inputs of the fuzzy controller. The fuzzy controller fuzzies the input signal and then defuzzifies the fuzzy reasoning and reasoning results to obtain the adjustment values ΔGp, ΔGi, and ΔGd of the three PID parameters.Figure 3
FuzzyPID control block diagram of line changing robot.Considering the response ability and robustness of the system, the paper formulates the establishment of following fuzzy control rules:(1)
When the deviations is large, increase Gp to increase the adjustment force, reduce Gd and remove Gi;(2)
when the deviations and deviation change rate Δs are large, appropriately reduce the Gi value, and select the medium equivalent of Gp and Gd;(3)
if the deviations is very small, the Gd selection is medium. If Δs is also small, the Gd can be larger. If Δs is larger, Gd is smaller;(4)
when the deviations increases, if s is large, increase Gp, reduce Gi and select the medium equivalent of Gd. If s is small, Gp is selected as the medium equivalent, increasing Gi and reducing Gd;(5)
when the deviations decreases, if Gp is large, Gp should select the medium equivalent, increase Gi and reduce Gd. If s is small, reduce Gp and Gi, and select the medium equivalent of Gd.The fuzzy universe of three parameter variables ofPID controller is set as −2.5,−1.5,−0.5,0,0.5,1.5,2.5, and NB,NM,NS,ZE,PS,PM,PB is used to represent the subset of input and output. The corresponding language values are defined as: negative large, negative medium, negative small, zero, positive small, positive medium, and positive large.Output the fuzzy quantity corresponding to the current deviation and deviation change rate, get the parameter correction item after defuzzification, and adjust the parameter variable ofPID controller.(5)Gp=Gp0+ΔGp,Gi=Gi0+ΔGi,Gd=Gd0+ΔGd,where Gp0, Gi0, and Gd0 represent the initial values of the three parameters of the PID controller; ΔGp, ΔGi, and ΔGd are the adjustment values of corresponding parameters.In the process of operation, according to the detection position deviations and deviation rate Δs, 3 parameters of the PID controller are adjusted in real time, and then the motor speed is controlled by the adjusted parameters in formula (5).(6)vj=Gpsj+GiT∑l=0jsj+Gdsj−sj−1T,where j is the sampling sequence number, T is the sampling time, and sj is the motion deviation at the current time, Gp, Gi, and Gd are model parameters of the PID controller.Among them,(7)sj=e−v,Δsj=sj−sj−1.


### 2.3. Defuzzification

The fuzzy output is obtained by fuzzy reasoning, while the speed control actuator can only recognize the clear output. Therefore, the controller must defuzzify the fuzzy quantity and convert it into an accurate quantity. Defuzzification is the inverse process of fuzzification. The weighted average method is a widely used defuzzification method in fuzzy control systems, namely,(8)Q=∑i=1riqi∑i=1qi,where qi is the ith membership value of the output fuzzy set, which can also be called weighting coefficient; ri is the weight of the ith membership function of the output fuzzy set.In the actual processing, the above calculations are carried out offline, and the control decision table is made and stored in the edge computing equipment. In the control process, the look-up table method is used to read the data, which reduces the online calculation time and improves the real-time performance of the system.


## 2.1. Determination of the Target Coordinate System

In this paper, the binocular camera is applied to the line patrol robot, and the target coordinates in the three-dimensional coordinate system of the camera are uniformly transformed into the coordinates in the robot’s coordinate system, that is, the coordinate transformation relationship of the line patrol robot should be found through hand-eye calibration.If the coordinate point of the identified target in the manipulator world coordinate system isx1,y1,z1, the corresponding coordinate in the camera coordinate system is x2,y2,z2. The two can coincide through rotation and translation. The transformation relationship expression is as follows:(2)x1y1z1=Rx2y2z2+T,where R is the orthogonal identity matrix and belongs to the rotation matrix of the coordinate system, T is the column vector, which belongs to the translation matrix of the coordinate system.The rotation of the coordinate system is divided into three steps; that is, the rotation angles around thex axis, y axis, and z axis are θ, σ, and ω, respectively. Then the rotation amount of each time is described as follows:(3)Rx=1000cosθ−sinθ0sinθcosθ,Ry=cosσ0sinσ010−sinσ01,Rz=cosω−sinω0sinωcosω0001.Among them, there isR=RxRyRz. In addition, the translation matrix T indicates that the translation distances on the x axis, y axis, and z axis of the coordinate system are a,b, and c, respectively. The expression is described as(4)T=abc.Since the relative position between the binocular camera and the line patrol robot always keeps one point, only the unknown parametersR and T need to be solved to find the changing relationship between the point in the camera coordinate system and the coordinate system of the line patrol robot.


## 2.2. FuzzyPID Control

The motion mechanism of the line patrol robot is affected by factors such as motor load change, connector clearance, mechanism wear, and external interference. Its motion mechanism parameters may change at any time, and the whole system has a certain time variability [23, 24].In the motion mechanism of the line inspection robot, the whole system is nonlinear and unpredictable. The key to fuzzyPID is to dynamically change the three important parameters of the PID process in the control process by combining the fuzzy algorithm to make the control more accurate and stable.The traditionalPID control method is difficult to achieve the expected control effect, and the conventional PID needs to establish an accurate mathematical model to set the parameters of the motion mechanism, which is quite complex and not practical. Therefore, we use the fuzzy PID control method to control the robot to meet the needs of different degrees of error for PID parameter self-adjustment so as to improve the accuracy and dynamic response of the control system.The principle of fuzzyPID control is shown in Figure 3. The deviation and deviation change rate between the expected motion and the actual motion of the motion mechanism are taken as the inputs of the fuzzy controller. The fuzzy controller fuzzies the input signal and then defuzzifies the fuzzy reasoning and reasoning results to obtain the adjustment values ΔGp, ΔGi, and ΔGd of the three PID parameters.Figure 3
FuzzyPID control block diagram of line changing robot.Considering the response ability and robustness of the system, the paper formulates the establishment of following fuzzy control rules:(1)
When the deviations is large, increase Gp to increase the adjustment force, reduce Gd and remove Gi;(2)
when the deviations and deviation change rate Δs are large, appropriately reduce the Gi value, and select the medium equivalent of Gp and Gd;(3)
if the deviations is very small, the Gd selection is medium. If Δs is also small, the Gd can be larger. If Δs is larger, Gd is smaller;(4)
when the deviations increases, if s is large, increase Gp, reduce Gi and select the medium equivalent of Gd. If s is small, Gp is selected as the medium equivalent, increasing Gi and reducing Gd;(5)
when the deviations decreases, if Gp is large, Gp should select the medium equivalent, increase Gi and reduce Gd. If s is small, reduce Gp and Gi, and select the medium equivalent of Gd.The fuzzy universe of three parameter variables ofPID controller is set as −2.5,−1.5,−0.5,0,0.5,1.5,2.5, and NB,NM,NS,ZE,PS,PM,PB is used to represent the subset of input and output. The corresponding language values are defined as: negative large, negative medium, negative small, zero, positive small, positive medium, and positive large.Output the fuzzy quantity corresponding to the current deviation and deviation change rate, get the parameter correction item after defuzzification, and adjust the parameter variable ofPID controller.(5)Gp=Gp0+ΔGp,Gi=Gi0+ΔGi,Gd=Gd0+ΔGd,where Gp0, Gi0, and Gd0 represent the initial values of the three parameters of the PID controller; ΔGp, ΔGi, and ΔGd are the adjustment values of corresponding parameters.In the process of operation, according to the detection position deviations and deviation rate Δs, 3 parameters of the PID controller are adjusted in real time, and then the motor speed is controlled by the adjusted parameters in formula (5).(6)vj=Gpsj+GiT∑l=0jsj+Gdsj−sj−1T,where j is the sampling sequence number, T is the sampling time, and sj is the motion deviation at the current time, Gp, Gi, and Gd are model parameters of the PID controller.Among them,(7)sj=e−v,Δsj=sj−sj−1.


## 2.3. Defuzzification

The fuzzy output is obtained by fuzzy reasoning, while the speed control actuator can only recognize the clear output. Therefore, the controller must defuzzify the fuzzy quantity and convert it into an accurate quantity. Defuzzification is the inverse process of fuzzification. The weighted average method is a widely used defuzzification method in fuzzy control systems, namely,(8)Q=∑i=1riqi∑i=1qi,where qi is the ith membership value of the output fuzzy set, which can also be called weighting coefficient; ri is the weight of the ith membership function of the output fuzzy set.In the actual processing, the above calculations are carried out offline, and the control decision table is made and stored in the edge computing equipment. In the control process, the look-up table method is used to read the data, which reduces the online calculation time and improves the real-time performance of the system.


## 3. Transmission Line State Analysis Based on Deep Learning

Edge computing mode has the advantages of data perception and efficient decision analysis. Therefore, we introduce the edge calculation model into the analysis of transmission cables, which can realize the condition monitoring and analysis of transmission cables at the edge of the network so as to ensure the reliable and stable power supply state of the transmission network.


### 3.1. Edge Computing

The transmission line has complex and diverse characteristics, and its data also has the characteristics of being high-dimensional and massive. The traditional analysis and decision-making method using a single computing center is difficult to meet the needs for efficient and fast processing.With the rapid development of edge computing technology in recent years, small edge servers are distributed near the equipment and processes in each edge server, which can effectively improve the efficiency of power inspection and facilitate the rapid and accurate identification of faults [25].We sink the transmission line state analysis model to the edge of the network and build an image analysis model near the data source to realize the situation awareness and state recognition of the transmission line.As shown in Figure4, the edge computing device mainly includes a partition model acquisition unit, management unit, calculation unit, and calculation result transmission unit. The main purpose of the partition information acquisition unit is to obtain the corresponding model weight file and the corresponding transmission destination information. The snap-in is used to manage the number of devices connected and communicating. The computing unit detects and analyzes various states of the cable by constructing an identification model. The calculation result transmission unit feeds back the predicted result to the upper center.Figure 4
Edge computing device.


### 3.2. Improved Faster-RCNN Model

In the process of patrol inspection, the line changing robot is far away from the photographed target object, and the size of spacer, vibration damper, and insulator defects on the line is small, which makes them account for a small proportion of the picture, resulting in poor model recognition effect. Therefore, the Faster-RCNN model is optimized.Firstly, by deepening the convolution layers of the feature extraction part, deeper feature information can be extracted. The second is the improvement of the model structure. Finally, by increasing the size, the number of candidate areas is increased so that the network can screen out the line components in the patrol picture as much as possible.The shallow features and deep features of the feature extraction part in the model are respectively downsampled and upsampled to the same size, and then the feature map is spliced, so that the size of the feature map is enlarged and the dimension of the feature map is increased, which can prevent the loss of small features and strengthen other feature information at the same time.Then the dimension is reduced by the convolution of the newly added layer2∗2 to realize the adjustment of the number of channels and the fusion of features. Figure 5 shows the overall framework of the improved target detection model.Figure 5
Frame diagram of the improved Faster-RCNN line part detection model.At present, the common way to expand the size of the feature map in deep learning is up-sampling and deconvolution as the inverse process of convolution [26]. However, the deconvolution process needs to train the parameters first, which is too complex. Therefore, we adopt the bilinear interpolation algorithm, which can retain the deep feature information obtained by the fifth convolution module when processing the image on the basis of enlarging the size of the feature image.Using the four real pixel values in the original image, one pixel value in the target image can be determined, which is the double line interpolation algorithm. The transition to the new image is more natural, and the expected result is more perfect. For example, if the original image ofd∗d∗d is enlarged to the target image of u∗u∗u, the target image needs to be filled with pixel values from the original image.If its coordinates arex+j,y+k,z+l (where x, y, and z are integer parts of floating-point coordinates, and j, k, and l are decimal parts of floating-point coordinates), the value of this pixel can be determined by the value of the surrounding pixels corresponding to the coordinates x,y,z, x+1,y,z, x+1,y+1,z, x+1,y,z+1, x+1,y+1,z+1, x,y+1,z, x,y+1,z+1, and x,y,z+1 in the original image.In the feature extraction part, the feature map of the Conv. 3 layer is extracted through a down-sampling operation, the feature map of the Conv. 4 layer is directly extracted, and the feature map output by the Conv. 5 layer is upsampled. The bilinear interpolation algorithm can retain the deep features learned by the Conv. layer, enlarge the size of the feature map and highlight the feature information.Before the feature maps of different convolution layers are sent to the connection layer, the feature orders of magnitude of different layers will be inconsistent. If they are directly stacked, the behavior of large-scale data drowning decimal data may occur, resulting in chaotic expression of feature information and poor fusion effect. Aiming to avoid this situation, local response normalization (LRN) is performed on the feature maps extracted from different layers, so that the features extracted from each layer can be fused into the same order of magnitude.It appears on AlexNet for the first time. LRN is used to make the larger value in the data larger, which can highlight the effective information and suppress the interference information. In general, the LRN layer is to divide the input valueαx,y,zi by a number to achieve the purpose of normalization. Normalize the local area so as to unify the dimensions, highlight the data with larger values, and suppress the data with smaller values. The formula is(9)βx,y,zi=αx,y,ziε+a∑αx,y,zi2b.Here,αx,y,zi is the input value and i is the position of the channel, representing the value of the updated channel. x, y, and z represent the location of the pixel to be updated. ε, a, and b are user-defined parameters. Select ε=3, a=1.5×10−3, and b=0.85 here.Aiming to adapt to the size of the corresponding parts of the transmission line and make the model more sensitive to the target, this paper adds two smaller sizes (162, 322, in pixels) on the basis of the traditional model, and adds two proportions of 1:6 and 6:1 as the aspect ratio. At this time, 30 candidate boxes can be generated at each position on the feature map.


### 3.3. Loss Function

The training of a line state detection network model is essentially a function optimization problem. Aiming to improve the accuracy of the recognition model and minimize the error, it is necessary to construct a loss function and optimize the model with the help of derivatives.The loss function is divided into two parts, one of which is the confidence loss and the other is the positional loss. The two parts are combined as the total loss function.(10)losstotal=1Nlossconfp,r+μlosslocp,d,e,where N is the number of positive samples. If N=0, set the loss function value to 0. lossconfp,r is the confidence loss function. losslocp,d,e is the position loss function. μ is the weight coefficient, μ=1, p, d, and e are xyz coordinates of the coordinate system, respectively.The position loss functionlosslocp,d,e in the algorithm, the specific calculation process is(11)losslocp,d,e=∑pijksmoothL1di−e^j,smoothL1=0.5p2,p<1,p−0.5,other,where pijk is the category matching parameter. When pijk=1, it means that the i a priori box matches the j ground truth, and the category of ground truth is k. e^j is the parameter after encoding the ground truth and a priori box. di represents the predicted offset value, which will be updated iteratively in the loss function.The classification confidencelossconfp,r adopts the cross entropy loss function, and the calculation formula is(12)lossconfp,r=−∑pijklogri−∑logri0,where ri0 represents the probability value of the prediction frame with the background and correct classification, and ri is the probability value calculated by SoftMax function.


## 3.1. Edge Computing

The transmission line has complex and diverse characteristics, and its data also has the characteristics of being high-dimensional and massive. The traditional analysis and decision-making method using a single computing center is difficult to meet the needs for efficient and fast processing.With the rapid development of edge computing technology in recent years, small edge servers are distributed near the equipment and processes in each edge server, which can effectively improve the efficiency of power inspection and facilitate the rapid and accurate identification of faults [25].We sink the transmission line state analysis model to the edge of the network and build an image analysis model near the data source to realize the situation awareness and state recognition of the transmission line.As shown in Figure4, the edge computing device mainly includes a partition model acquisition unit, management unit, calculation unit, and calculation result transmission unit. The main purpose of the partition information acquisition unit is to obtain the corresponding model weight file and the corresponding transmission destination information. The snap-in is used to manage the number of devices connected and communicating. The computing unit detects and analyzes various states of the cable by constructing an identification model. The calculation result transmission unit feeds back the predicted result to the upper center.Figure 4
Edge computing device.


## 3.2. Improved Faster-RCNN Model

In the process of patrol inspection, the line changing robot is far away from the photographed target object, and the size of spacer, vibration damper, and insulator defects on the line is small, which makes them account for a small proportion of the picture, resulting in poor model recognition effect. Therefore, the Faster-RCNN model is optimized.Firstly, by deepening the convolution layers of the feature extraction part, deeper feature information can be extracted. The second is the improvement of the model structure. Finally, by increasing the size, the number of candidate areas is increased so that the network can screen out the line components in the patrol picture as much as possible.The shallow features and deep features of the feature extraction part in the model are respectively downsampled and upsampled to the same size, and then the feature map is spliced, so that the size of the feature map is enlarged and the dimension of the feature map is increased, which can prevent the loss of small features and strengthen other feature information at the same time.Then the dimension is reduced by the convolution of the newly added layer2∗2 to realize the adjustment of the number of channels and the fusion of features. Figure 5 shows the overall framework of the improved target detection model.Figure 5
Frame diagram of the improved Faster-RCNN line part detection model.At present, the common way to expand the size of the feature map in deep learning is up-sampling and deconvolution as the inverse process of convolution [26]. However, the deconvolution process needs to train the parameters first, which is too complex. Therefore, we adopt the bilinear interpolation algorithm, which can retain the deep feature information obtained by the fifth convolution module when processing the image on the basis of enlarging the size of the feature image.Using the four real pixel values in the original image, one pixel value in the target image can be determined, which is the double line interpolation algorithm. The transition to the new image is more natural, and the expected result is more perfect. For example, if the original image ofd∗d∗d is enlarged to the target image of u∗u∗u, the target image needs to be filled with pixel values from the original image.If its coordinates arex+j,y+k,z+l (where x, y, and z are integer parts of floating-point coordinates, and j, k, and l are decimal parts of floating-point coordinates), the value of this pixel can be determined by the value of the surrounding pixels corresponding to the coordinates x,y,z, x+1,y,z, x+1,y+1,z, x+1,y,z+1, x+1,y+1,z+1, x,y+1,z, x,y+1,z+1, and x,y,z+1 in the original image.In the feature extraction part, the feature map of the Conv. 3 layer is extracted through a down-sampling operation, the feature map of the Conv. 4 layer is directly extracted, and the feature map output by the Conv. 5 layer is upsampled. The bilinear interpolation algorithm can retain the deep features learned by the Conv. layer, enlarge the size of the feature map and highlight the feature information.Before the feature maps of different convolution layers are sent to the connection layer, the feature orders of magnitude of different layers will be inconsistent. If they are directly stacked, the behavior of large-scale data drowning decimal data may occur, resulting in chaotic expression of feature information and poor fusion effect. Aiming to avoid this situation, local response normalization (LRN) is performed on the feature maps extracted from different layers, so that the features extracted from each layer can be fused into the same order of magnitude.It appears on AlexNet for the first time. LRN is used to make the larger value in the data larger, which can highlight the effective information and suppress the interference information. In general, the LRN layer is to divide the input valueαx,y,zi by a number to achieve the purpose of normalization. Normalize the local area so as to unify the dimensions, highlight the data with larger values, and suppress the data with smaller values. The formula is(9)βx,y,zi=αx,y,ziε+a∑αx,y,zi2b.Here,αx,y,zi is the input value and i is the position of the channel, representing the value of the updated channel. x, y, and z represent the location of the pixel to be updated. ε, a, and b are user-defined parameters. Select ε=3, a=1.5×10−3, and b=0.85 here.Aiming to adapt to the size of the corresponding parts of the transmission line and make the model more sensitive to the target, this paper adds two smaller sizes (162, 322, in pixels) on the basis of the traditional model, and adds two proportions of 1:6 and 6:1 as the aspect ratio. At this time, 30 candidate boxes can be generated at each position on the feature map.


## 3.3. Loss Function

The training of a line state detection network model is essentially a function optimization problem. Aiming to improve the accuracy of the recognition model and minimize the error, it is necessary to construct a loss function and optimize the model with the help of derivatives.The loss function is divided into two parts, one of which is the confidence loss and the other is the positional loss. The two parts are combined as the total loss function.(10)losstotal=1Nlossconfp,r+μlosslocp,d,e,where N is the number of positive samples. If N=0, set the loss function value to 0. lossconfp,r is the confidence loss function. losslocp,d,e is the position loss function. μ is the weight coefficient, μ=1, p, d, and e are xyz coordinates of the coordinate system, respectively.The position loss functionlosslocp,d,e in the algorithm, the specific calculation process is(11)losslocp,d,e=∑pijksmoothL1di−e^j,smoothL1=0.5p2,p<1,p−0.5,other,where pijk is the category matching parameter. When pijk=1, it means that the i a priori box matches the j ground truth, and the category of ground truth is k. e^j is the parameter after encoding the ground truth and a priori box. di represents the predicted offset value, which will be updated iteratively in the loss function.The classification confidencelossconfp,r adopts the cross entropy loss function, and the calculation formula is(12)lossconfp,r=−∑pijklogri−∑logri0,where ri0 represents the probability value of the prediction frame with the background and correct classification, and ri is the probability value calculated by SoftMax function.


## 4. Experimental Analysis

The training of deep networks requires a high operating environment. The computer hardware configuration of the experimental simulation is Intel core i5-10400 and NVIDIA GeForce UTX 3080ti. The network model is trained and tested using the Keras open-source library with TensorFlow as the back end.The embedded platform of the model adopts the NVIDIA Jetson TX2. We put the transmission line condition monitoring model trained on the server on Jetson TX2. The hardware and configuration of Jetson TX2 are shown in Table1.Table 1
Hardware and configuration parameters.
ItemParameterGPUPascal 256 CUDA coresCPUDenver 2, ARM A57 complexDisplayDSI, DPMemory8 GB 128 bit LPDDR4Storage32 GB


### 4.1. Experimental Data Preprocessing

The dataset used in this paper is the relevant images of high-voltage transmission lines collected from power-related channels and network power-related data, including garbage on high-voltage transmission lines, broken strands of high-voltage transmission lines, loose strands of high-voltage transmission lines and other types of photos.We take a series of data enhancement measures such as rotating, flipping, color adjustment, scaling, and so on. Rotate the image and enhance the data as shown in Figure6(a). The image is randomly cropped or zeroed to the specified size, as shown in Figure 6(b). Further, the original lightness, saturation, and hue of the image are randomly adjusted by using the color space HSV. V stands for lightness. The higher the value, the brighter the color; S represents saturation. The larger the value, the more saturated the color is; H represents hue, and the value range is 0°∼360°.Figure 6
Transmission line image preprocessing. (a) Auto clipping. (b) Image rotation. (c) HSV treatment.
(a)(b)(c)After data enhancement processing, we get a total of 16305 image photos, of which 13044 images are used as the training sample data set and 3261 images are used as the training test dataset.


### 4.2. Model Performance Analysis

First, we use the loss function as the evaluation index to optimize the feasibility of the model, in which the comparison model is the traditional CNN network model and the RCNN network model. The change in loss value of training sample set analysis by different network models is shown in Figure7.Figure 7
Variation of loss functionlosstotal.As shown in Figure7, the losstotal values of all models decreased rapidly after the training began. Among them, the losstotal value of the proposed model converges rapidly at the beginning of training, and the increase in the number of iterations makes the losstotal value gradually tend to 0. After 20 iterations, the loss function of the model decreases to within 0.01, the curve fluctuation is small and tends to be gentle, and the transmission line identification model converges effectively.However, the calculation and analysis process of the RCNN model and CNN model is relatively slow. After 40 rounds of iterative calculation, the model converges effectively, and the loss functionlosstotal remains around 0.25.Meanwhile, we analyze the recognition efficiency of the above model. Table2 shows the identification of some identified items.Table 2
Identification results of different models.
ItemThe proposed method (%)CNN model (%)RCNN model (%)Normal state96.5693.5994.19Cable damage95.4894.3694.00Insulator damage93.9292.3491.93Line foreign matter94.1193.1193.59As shown in Table2, the method proposed in this paper has obvious advantages over the comparative model and can realize cable condition monitoring in different states to deal with the complex transmission line inspection environment.The detection accuracy of the proposed method for the normal state of the line is as high as 96.56%, which is 2.97% higher than that of the CNN model. However, the accuracy of the proposed method for the insulator damage is low, at 93.92%, but it is still 1.99% higher than that of the RCNN model.


### 4.3. Simulation Analysis

#### 4.3.1. Evaluation Index

In this paper, precisionPrecision, recallRecall, and accuracyAccuracy are selected as performance evaluation indexes.In addition, the number of images correctly identifying the status of the line and cable is recorded asTP, the number of images identifying the correct sample as the wrong sample is recorded as FP, the number of images incorrectly identifying the status of the cable is recorded as TN, and the number of images identifying the wrong sample as the correct sample is recorded as FN.The calculation formula of each performance index is(13)Precision=TPTP+FP,Recall=TPTP+FN,Accuracy=TP+TNTP+FN+FP+TN.At the same time, we fuse and optimize the indexPrecision and index Recall, and propose to use the average accuracy index AP instead of it to achieve more reliable performance analysis.The calculation formula ofAP index is(14)AP=∫01Precision d Recall.


#### 4.3.2. Identification and Analysis of Line Status

Through the comparative analysis of reference [17] and reference [19], this paper enables the verification of the optimality of the proposed model. All the samples are preanalyzed in the same environment.The analysis results of the same dataset by different methods are shown in Figure8.Figure 8
Image analysis performance of different analysis methods.As shown in Figure8, the transmission line state analysis method proposed in this paper has obvious state diagnosis advantages over the comparison method. The accuracy of the proposed method is 97.54%, and that of Reference [17] and Reference [19] is 95.61% and 94.91%, respectively. At the same time, the average accuracy is 98.01%, which is 2.93% and 3.87% higher than the Reference [17] and reference [19], respectively.The reason is that the proposed method optimizes the structure of the depth network model, which can accurately obtain and analyze the feature information of the deep image. Meanwhile, the loss function of the line state recognition model is reconstructed so that the network model can achieve better antinoise characteristics. On the contrary, Reference [17] and Reference [19] lack consideration of multilayer feature fusion, and there may be a problem of insufficient acquisition of deep features.In addition, we should also note that the high precision and accuracy of the recognition method we proposed also benefits from the stable and controllable motion support of the line patrol robot provided by the fuzzyPID control method.Furthermore, we analyze the operation efficiency of the cable state analysis method. The calculation efficiency of different methods is shown in Table3.Table 3
Calculation efficiency of each method.
MethodsTime (s)The proposed method1.034Reference [17]2.189Reference [19]2.292Because we sink the state analysis model into the edge computing device, the cable state analysis method we proposed is faster than the comparison method. In Table3, the calculation time of our method is 1.034 s, which is nearly twice as long as that in reference [19].


## 4.1. Experimental Data Preprocessing

The dataset used in this paper is the relevant images of high-voltage transmission lines collected from power-related channels and network power-related data, including garbage on high-voltage transmission lines, broken strands of high-voltage transmission lines, loose strands of high-voltage transmission lines and other types of photos.We take a series of data enhancement measures such as rotating, flipping, color adjustment, scaling, and so on. Rotate the image and enhance the data as shown in Figure6(a). The image is randomly cropped or zeroed to the specified size, as shown in Figure 6(b). Further, the original lightness, saturation, and hue of the image are randomly adjusted by using the color space HSV. V stands for lightness. The higher the value, the brighter the color; S represents saturation. The larger the value, the more saturated the color is; H represents hue, and the value range is 0°∼360°.Figure 6
Transmission line image preprocessing. (a) Auto clipping. (b) Image rotation. (c) HSV treatment.
(a)(b)(c)After data enhancement processing, we get a total of 16305 image photos, of which 13044 images are used as the training sample data set and 3261 images are used as the training test dataset.


## 4.2. Model Performance Analysis

First, we use the loss function as the evaluation index to optimize the feasibility of the model, in which the comparison model is the traditional CNN network model and the RCNN network model. The change in loss value of training sample set analysis by different network models is shown in Figure7.Figure 7
Variation of loss functionlosstotal.As shown in Figure7, the losstotal values of all models decreased rapidly after the training began. Among them, the losstotal value of the proposed model converges rapidly at the beginning of training, and the increase in the number of iterations makes the losstotal value gradually tend to 0. After 20 iterations, the loss function of the model decreases to within 0.01, the curve fluctuation is small and tends to be gentle, and the transmission line identification model converges effectively.However, the calculation and analysis process of the RCNN model and CNN model is relatively slow. After 40 rounds of iterative calculation, the model converges effectively, and the loss functionlosstotal remains around 0.25.Meanwhile, we analyze the recognition efficiency of the above model. Table2 shows the identification of some identified items.Table 2
Identification results of different models.
ItemThe proposed method (%)CNN model (%)RCNN model (%)Normal state96.5693.5994.19Cable damage95.4894.3694.00Insulator damage93.9292.3491.93Line foreign matter94.1193.1193.59As shown in Table2, the method proposed in this paper has obvious advantages over the comparative model and can realize cable condition monitoring in different states to deal with the complex transmission line inspection environment.The detection accuracy of the proposed method for the normal state of the line is as high as 96.56%, which is 2.97% higher than that of the CNN model. However, the accuracy of the proposed method for the insulator damage is low, at 93.92%, but it is still 1.99% higher than that of the RCNN model.


## 4.3. Simulation Analysis

### 4.3.1. Evaluation Index

In this paper, precisionPrecision, recallRecall, and accuracyAccuracy are selected as performance evaluation indexes.In addition, the number of images correctly identifying the status of the line and cable is recorded asTP, the number of images identifying the correct sample as the wrong sample is recorded as FP, the number of images incorrectly identifying the status of the cable is recorded as TN, and the number of images identifying the wrong sample as the correct sample is recorded as FN.The calculation formula of each performance index is(13)Precision=TPTP+FP,Recall=TPTP+FN,Accuracy=TP+TNTP+FN+FP+TN.At the same time, we fuse and optimize the indexPrecision and index Recall, and propose to use the average accuracy index AP instead of it to achieve more reliable performance analysis.The calculation formula ofAP index is(14)AP=∫01Precision d Recall.


### 4.3.2. Identification and Analysis of Line Status

Through the comparative analysis of reference [17] and reference [19], this paper enables the verification of the optimality of the proposed model. All the samples are preanalyzed in the same environment.The analysis results of the same dataset by different methods are shown in Figure8.Figure 8
Image analysis performance of different analysis methods.As shown in Figure8, the transmission line state analysis method proposed in this paper has obvious state diagnosis advantages over the comparison method. The accuracy of the proposed method is 97.54%, and that of Reference [17] and Reference [19] is 95.61% and 94.91%, respectively. At the same time, the average accuracy is 98.01%, which is 2.93% and 3.87% higher than the Reference [17] and reference [19], respectively.The reason is that the proposed method optimizes the structure of the depth network model, which can accurately obtain and analyze the feature information of the deep image. Meanwhile, the loss function of the line state recognition model is reconstructed so that the network model can achieve better antinoise characteristics. On the contrary, Reference [17] and Reference [19] lack consideration of multilayer feature fusion, and there may be a problem of insufficient acquisition of deep features.In addition, we should also note that the high precision and accuracy of the recognition method we proposed also benefits from the stable and controllable motion support of the line patrol robot provided by the fuzzyPID control method.Furthermore, we analyze the operation efficiency of the cable state analysis method. The calculation efficiency of different methods is shown in Table3.Table 3
Calculation efficiency of each method.
MethodsTime (s)The proposed method1.034Reference [17]2.189Reference [19]2.292Because we sink the state analysis model into the edge computing device, the cable state analysis method we proposed is faster than the comparison method. In Table3, the calculation time of our method is 1.034 s, which is nearly twice as long as that in reference [19].


## 4.3.1. Evaluation Index

In this paper, precisionPrecision, recallRecall, and accuracyAccuracy are selected as performance evaluation indexes.In addition, the number of images correctly identifying the status of the line and cable is recorded asTP, the number of images identifying the correct sample as the wrong sample is recorded as FP, the number of images incorrectly identifying the status of the cable is recorded as TN, and the number of images identifying the wrong sample as the correct sample is recorded as FN.The calculation formula of each performance index is(13)Precision=TPTP+FP,Recall=TPTP+FN,Accuracy=TP+TNTP+FN+FP+TN.At the same time, we fuse and optimize the indexPrecision and index Recall, and propose to use the average accuracy index AP instead of it to achieve more reliable performance analysis.The calculation formula ofAP index is(14)AP=∫01Precision d Recall.


## 4.3.2. Identification and Analysis of Line Status

Through the comparative analysis of reference [17] and reference [19], this paper enables the verification of the optimality of the proposed model. All the samples are preanalyzed in the same environment.The analysis results of the same dataset by different methods are shown in Figure8.Figure 8
Image analysis performance of different analysis methods.As shown in Figure8, the transmission line state analysis method proposed in this paper has obvious state diagnosis advantages over the comparison method. The accuracy of the proposed method is 97.54%, and that of Reference [17] and Reference [19] is 95.61% and 94.91%, respectively. At the same time, the average accuracy is 98.01%, which is 2.93% and 3.87% higher than the Reference [17] and reference [19], respectively.The reason is that the proposed method optimizes the structure of the depth network model, which can accurately obtain and analyze the feature information of the deep image. Meanwhile, the loss function of the line state recognition model is reconstructed so that the network model can achieve better antinoise characteristics. On the contrary, Reference [17] and Reference [19] lack consideration of multilayer feature fusion, and there may be a problem of insufficient acquisition of deep features.In addition, we should also note that the high precision and accuracy of the recognition method we proposed also benefits from the stable and controllable motion support of the line patrol robot provided by the fuzzyPID control method.Furthermore, we analyze the operation efficiency of the cable state analysis method. The calculation efficiency of different methods is shown in Table3.Table 3
Calculation efficiency of each method.
MethodsTime (s)The proposed method1.034Reference [17]2.189Reference [19]2.292Because we sink the state analysis model into the edge computing device, the cable state analysis method we proposed is faster than the comparison method. In Table3, the calculation time of our method is 1.034 s, which is nearly twice as long as that in reference [19].


## 5. Conclusion

Aiming to realize high-precision and fast transmission cable condition analysis, we propose a cable condition monitoring and analysis method integrating motion control and image analysis technology. In this method, fuzzyPID technology is introduced to realize the smooth and accurate motion control of the line-changing robot and improve the quality of collecting transmission cable images. At the same time, the CNN model and loss function are optimized at the edge to ensure that the state analysis model has the advantages of small error and high speed so as to realize the efficient identification of the state of transmission lines. The simulation results show that the accuracy of the proposed method is 97.54% in 1.034 s, which can realize the high-efficiency transmission cable state analysis under complex conditions.Although the analysis method we proposed has a good effect on cable state recognition, it should also be noted that the parameter settings in the model are fixed values and are not adaptive. Future research methods will discuss the adaptive optimization of model parameters to further improve the efficiency of network model analysis.



---

*Source: 7747194-2023-02-27.xml*