Image Recognition Technology with Its Application in Defect Detection and Diagnosis Analysis of Substation Equipment

Detection of substation equipment can promptly and effectively discover equipment overheating defects and prevent equipment failures. Traditional manual diagnosis methods are difficult to deal with the massive infrared images generated by the autonomous inspection of substation robots and drones. At present, most of the infrared image defect recognition is based on traditional machine learning algorithms, with low recognition accuracy and poor generalization capability. (erefore, this paper develops a method for identifying infrared defects of substation equipment based on the improvement of traditional ones. First, based on the Faster RCNN, target detection is performed on 6 types of substation equipment including bushings, insulators, wires, voltage transformers, lightning rods, and circuit breakers to achieve precise positioning of the equipment. Afterwards, different classes are identified based on the sparse representation-based classification (SRC), so the actual label of the input sample can be obtained. Finally, based on the temperature threshold discriminant algorithm, defects are identified in the equipment area. (e measured infrared images are used for experiments. (e average detection accuracy achieved by the proposed method for the 6 types of equipment reaches 92.34%. (e recognition rate of different types of equipment is 98.57%, and the defect recognition accuracy reaches 88.75%. (e experimental results show the effectiveness and accuracy of the proposed method.


Introduction
e power station is an important node in the power grid that is responsible for converting voltage and distributing electric energy. Its safety and reliability are directly related to the safety and stability of the power system [1][2][3][4][5]. According to the statistics, about half of the power equipment failures have abnormal temperature in the early stage. Infrared detection of power equipment has the advantages of nonpower failure, noncontact, high sensitivity, and mature technology [6][7][8]. It can detect equipment overheating defects in a timely and effective manner and prevent equipment failures. It has been widely used in the field of power equipment thermal fault diagnosis. In recent years, infrared thermal imagers have been equipped with inspection platforms such as substation inspection robots and drones to conduct intelligent inspections on substation equipment, reducing the workload of operation and maintenance personnel to collect infrared images of equipment [9][10][11][12][13][14]. However, a large number of inspections or online monitoring still require manual analysis, which is time-consuming and inefficient, and also difficult to cope with the massive infrared images generated by inspections. erefore, the researchers have carried out a series of works on infrared defect recognition. ese methods used different types of features or classification models to analyze and process images and then determined and recognized defects. Most of the existing research studies on infrared image defect recognition are based on traditional machine learning algorithms, which have disadvantages such as low accuracy, poor generalization ability, and rigid model. With the development of artificial intelligence technology, image detection algorithms based on deep learning have been widely used in the field of visible light object detection [13][14][15][16], but there are few applications in infrared image recognition and detection. So, it is urgent to carry out infrared image-based fault identification algorithms of substation equipment [17][18][19].
Based on the improvement of traditional image analysis technology, this paper proposes an infrared defect recognition method for substation equipment. First, based on the Faster RCNN algorithm [20][21][22][23], target detection is performed on 6 types of substation equipment, including bushings, insulators, wires, voltage transformers, lightning rods, and circuit breakers, to achieve precise positioning of the equipment. Next, for the detected image area of the substation equipment, fine classification is performed based on the sparse representation-based classification (SRC) [24][25][26][27]. And, the specific substation equipment label to which it belongs is determined based on the training samples. Finally, based on the threshold on the temperature, defects are identified in the equipment area to determine whether the equipment has defects and the relevant severity. Compared with the traditional image defect detection algorithms of substation equipment, this paper further introduces SRC to realize the accurate confirmation of the category of the input substation equipment. Such operation has important auxiliary significance for subsequent targeted defect detection and failure analysis. In the experiment, the proposed method is tested based on the collecting infrared images from actual measurement to verify its feasibility and accuracy.

Equipment Detection Based on Faster RCNN
is paper first builds an infrared image defect detection model for substation equipment based on Faster RCNN. e specific frame structure is shown in Figure 1. First, the Faster RCNN detection model is trained based on the infrared image training dataset of the substation equipment to generate a defect detection network. en, the test infrared image is input into the defect detection network to verify the detection performance. As shown in Figure 1, the Faster RCNN detection network is composed of two parts: a region proposal network (RPN) and a region convolutional neural network (RCNN). e Faster RCNN model is an integrated network that can effectively realize object detection in input images. It mainly completes region proposal and CNN detection, which are completed by RPN and RCNN, respectively. RPN is a fully convolutional neural network that can effectively predict object boundaries and object scores at various positions in the input image. Object boundaries and object scores are important indicators for evaluating whether an area is proposed. e image input proposal given by RPN will be input into RCNN to realize the classification of the proposed area and calculate the score of each proposed area. e Faster RCNN model integrates the RPN network and RCNN into one network by sharing convolutional features and provides a joint training method. Compared with a single network structure, the Faster RCNN model deepens the network depth and improves the image detection performance. ere have been many research results based on Faster RCNN's target detection and power equipment detection [20][21][22][23]. is paper mainly uses the direct application shown in Figure 1 and will not introduce it in detail here.

SRC.
e basic principle of SRC [24][25][26][27] is to use training samples to linearly fit the test samples of unknown categories and constrain the high sparsity of linear representation coefficients. On this basis, the reconstruction error of each training class for the test sample is calculated separately to determine the target label of the test sample. Assume that the training samples of the M-class targets construct a global dictionary M) are all the training samples of the ith class. For the test sample y with an unknown target label, the sparse representation process is as follows: x � arg min ‖x‖ 0 , (1) In equation (1), x is the linear coefficient vector to be solved. Under the sparsity constraint, only a small number of elements in the coefficients are nonzero. With the optimal estimated x to be obtained, equation (3) is used to calculate the reconstruction error of each training class for the test sample, and then, the decision is made according to the minimum error criterion: where δ i (x) represents the sparse representation coefficient vector corresponding to the ith class and r(i)(i � 1, 2, . . . , M) is the reconstruction error of the ith class.
It can be seen that the key problem in SRC is the solution of the sparse coefficients. With the accurate and reliable solutions, the target label of the test sample can be accurately obtained. Since the problem of minimizing the ℓ 0 -norm in equation (1) is an NP-hard problem, it is difficult to solve it directly. Researchers found that the ℓ 1 -norm minimization optimization and the ℓ 0 -norm minimization optimization are equivalent under certain conditions [24], so equation (1) can be transformed into e introduction of the ℓ 1 norm can turn the original problem into a convex optimization problem which is easy to solve [5]. So, the linear programming method can be used to solve the sparse representation coefficients. In the actual process, due to the influence of noise and the unstable error between the training and the test samples, it is difficult to achieve a completely accurate reconstruction. erefore, the sparse coefficient vector is solved as follows under the given reconstruction error limit: 2 Scientific Programming x � arg min ‖x‖ 1 , where ε is the allowable reconstruction error. Based on the detection results of substation equipment by Faster RCNN, this paper uses SRC for precise identification for each region of the detected results. A global dictionary is constructed based on the training samples with known target labels. en, the reconstruction error of the input sample in any class is calculated according to the abovementioned sparse representation and reconstruction process. According to the reconstruction errors, the substation equipment label is determined precisely.

Defect Diagnosis. Abnormal heating of substation equipment is an important basis for judging the defects.
Frequent defects in substation equipment include defects, loose parts, loose wires, corrosion or oxidation of equipment contact surfaces, and excessive current-carrying. e equipment's own defects cause the equipment to fail to operate normally and heat up; then, the equipment must be replaced. Loose parts and loose wires are common failures of the capacitor interface accessories of the power transmission and transformation equipment. is type of failure is caused by the change in the area. Corrosion or oxidation of the equipment contact surface is a common fault in electrical contact parts such as disconnecting switches of power equipment.
is type of fault increases current-carrying resistance and causes the fault point to heat up. When the current-carrying is too large, the equipment is under high load. After running for a certain period of time, abnormal heating will also occur.
Electricity can divide equipment thermal defects into current heating and voltage heating according to different heating properties. Current heating defects refer to the heating caused by the resistance of the current flowing through the conductive loop, which is mainly concentrated at the equipment connectors. And, the temperature rise is more obvious and easier to be found, accounting for about 90% of the total number of faults [12]. Voltage heating defect refers to the heating of the device caused by the action of the electric field when the operating voltage is applied to the insulating medium of the device. Only a small part of the heat of this type of fault can be conducted to the surface of the equipment shell, and the temperature rise that can be measured is very small, which is difficult to be detected. is paper proposes an infrared defect recognition method for current-induced defects. Current heating-type defects include joint heating, disconnection switch knife edge and switching hair heating, circuit breaker contact heating, transformer internal connection heating, and bushing string heating. e surface temperature discrimination method is the simplest and most effective method for judging current-heated defects. According to previous works, three temperature threshold values of 50°C, 80°C, and 105°C are selected to identify defects in the equipment. Urgent defects represent defects that have a serious threat and need to be addressed immediately. A serious defect indicates a fault that may threaten to be dealt with as soon as possible. General deficiencies indicate that there is little threat to the safety of equipment operation that requires enhanced surveillance. On the basis of completing the detection and identification of substation equipment, the process of infrared image defect identification in this paper is shown in Figure 2

Preparation.
is paper selects infrared images of 6 types of substation equipment including bushings, insulators, wires, voltage transformers, lightning rods, and circuit breakers for defect detection. ese images mainly come from the grid company reserves and collected data in actual scenes. e dataset includes a total of 800 defective images and 1900 normal images. In order to avoid additional deviations introduced in the data division process and affect the final result, the training set and the test set should be randomly selected from the original ones. Finally, this paper randomly chooses 1700 infrared images of substation equipment from the total sample set as the training set and 600 infrared images as the test set.

Results and Discussion.
For Faster RCNN-based substation equipment detection, in the experiment, the model training learning rate is set to 0.001, mini-batch size 256, momentum 0.9, weight attenuation 0.0001, and total number of iterations 20000. e 1700 training samples are trained to obtain substation equipment detection models. e detection accuracy of 6 types of substation equipment achieved by the proposed method is shown in Table 1, and the average accuracy is 92.34%. is result verifies the effectiveness of Faster RCNN for image detection of substation equipment.
e training samples are also used to train the SRC to obtain the corresponding classification model. According to the Faster RCNN results of the test samples, the concrete label of the substation equipment to which the test samples belong is confirmed. Table 2 shows the recognition rates of different types of substation equipment based on SRC, and the average recognition rate reaches 98.57%. is result proves the effectiveness of SRC for the identification of substation equipment.

Scientific Programming
On the basis of the abovementioned detection and identification process, the defect detection of substation equipment is carried out based on the idea of temperature thresholds. According to statistics, there are a total of 160 defective devices in the test set of 600 infrared images, and 142 devices are correctly judged as defective based on the proposed algorithm, with an accuracy rate of 88.75%. Figure 3 shows examples of the defect detection results of the proposed method for some substation equipment. e region marked in the dashed box is the abnormal part where the temperature exceeds the set threshold, that is, the local area where defects may exist. e results are consistent with the actual situation. e experimental results show the effectiveness and accuracy of the method in this paper. In the specific defect processing process, because this article not only carried out the inspection of   the equipment but also confirmed its category, it can assist the staff to formulate more effective treatment measures.

Conclusion
is paper applies image recognition technology to the detection and diagnosis of defects in substation equipment. First, for an input infrared image of substation equipment, Faster RCNN is used to detect the key areas to obtain the substation equipment of interest. On this basis, relying on the training samples that have been classified, the detected area is confirmed based on the SRC, and the specific type of the substation equipment is determined. Finally, determine whether it is in a normal state according to the temperature of the device reflected in the current infrared image. Compared with traditional substation equipment defect analysis algorithms, this paper further confirms the category of input equipment by introducing SRC, so the analysis results are more informative, which is conducive to the development of targeted diagnosis and repair. Experiments are carried out on the infrared image set of actual measurement substation equipment, and the results show the effectiveness of the proposed method for defect detection and identification of substation equipment.

Data Availability
e data used in this study are available from the authors upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest.