Keywords

1 Introduction

Insulators play an important role in transmission lines. However, it is vulnerable and can be thwarted by a fracture or other faults. These faults even cause power failure and serious economic losses or casualties. Therefore, monitoring the condition of insulators is of great significance.

As per literature [1, 2], the damage of insulators can be determined by the minimum law of the vertical gray statistic chart. Works [1, 2] realizes the damage detection of insulator without cover, but when the insulator is occluded partially, their method will destroy the minimum law of the insulator and lead to miscalculation. Work [3] divides an insulator into 10 parts, defines the standard of Contract-Mean-Variance (CMV) curve by three texture parameters of each part, and then detects whether the insulator is broken. However, when the insulator is divided, the damage is distributed on two adjacent parts. Under this condition, the stability of the CMV curve will be increased, thus probably causing miscalculation. Work [4] uses the edge slope feature model of crack to detect crack and obtains satisfactory results from the smooth insulators. But when the insulator surface is unsmooth, the method may cause miscalculation. Work [5] extracts the crack of binary image vertical projection, horizontal projection and two-order moment invariant of geometric moment invariants as the feature value, and detects the category of crack by Adaptive Resonance Theory (ART) network. The features extracted by this method is only applicable to the classification of the crack and it is monotonous. In [1,2,3,4,5], the number of fault categories is so limited, and the criterion of insulator fault is monotonous. They cannot deal with a variety of defects [6].

This paper presents a simple but effective approach to detect surface defects of insulators based on RPCA. The approach decomposes the image matrix of insulator into a low-rank component and a sparse component effectively. The low-rank image and the sparse image correspond to the non-defective component and the defective component, respectively. The advantages of the method are that the defects can be identified by separating the sparse component image and their categories can be determined. Moreover, we have reduced the computational complexity relatively.

2 Low-Rank Matrix Restoration Based on RPCA

RPCA is also called sparse and low-rank matrix decomposition [7] and it is evolved from the Principal Component Analysis (PCA) algorithm. PCA is the method that makes high-dimensional data in a low-dimensional space. It reduces the data dimension. Meanwhile, it can preserve more details in source images. The formula is as follows:

$$ \begin{array}{*{20}c} {} & {\text{min}\left\| {\mathbf{E}} \right\|_{F} } \\ {s.t.} & {rank({\mathbf{A}}) \le r,{\mathbf{A}} + {\mathbf{E}} - {\mathbf{D}}} \\ \end{array} $$
(1)

where A is a low-rank component, E is a sparse-error component, D is original input data and each column represents the data of an observed image. \( \left| {\left| \cdot \right|} \right|_{F} \) is the Frobenius matrix norm. However, there is a difficult problem in most error matrices, which is to recover low-rank matrices from high-dimensional data of observation matrices. These error matrices do not belong to the independent distribution of Gaussian noise. Moreover, PCA needs to know the dimensionality of low-dimensional feature space. But these problems are difficult to solve generally.

Based on the above PCA problems, Wright et al. [8] proposed RPCA to solve the question that data in A have been seriously damaged. In other words, they transformed the PCA problem into the RPCA problem. We describe the RPCA problem abstractly as follows: when we know the observation matrix D and A + E = D, although we do not know A and E, but we know that A is a low-rank component and E is a sparse component in which nonzero elements can be arbitrarily large. And then we try to restore A in this condition. The formula can be described as follows:

$$ \begin{array}{*{20}l} {\mathop {\text{min}}\limits_{{{\mathbf{A,E}}}} } \hfill & {rank\text{(}{\mathbf{A}}\text{)} + \lambda \left\| {\mathbf{E}} \right\|_{0} } \hfill \\ {s.t.} \hfill & {{\mathbf{A}} + {\mathbf{E = D}}} \hfill \\ \end{array} $$
(2)

where the rank of matrix A is represented by rank(A), and \( \left| {\left| \cdot \right|} \right|_{0} \) denotes the L 0 norm, λ denotes the weight of noise. If we can solve the RPCA problem by the correct λ, (A, E) can be accurately recovered as well. Nevertheless, Eq. (2) belongs to the NP-Hard and Strictly Non-convex Optimization problem, and there is no efficient solution [9, 10].

We can turn the RPCA problem into a convex optimization problem which can be solved easily by making the stress relaxation of Eq. (2). In other words, we use the L 1 norm instead of the l 0 norm and use the kernel norm \( \left| {\left| {\mathbf{A}} \right|} \right|_{*} = \sum_{i} \sigma_{i} \left( {\mathbf{A}} \right) \) of A instead of the rank (A). Then we turn Eq. (2) into Eq. (3). And then we turn the problem into a convex optimization problem which is easy to solve relatively. The result as Eq. (3): under certain conditions, (A, E) can be solved uniquely and recovered ideally.

$$ \begin{array}{*{20}l} {\mathop {\text{min}}\limits_{{{\mathbf{A,E}}}} } \hfill & {\left\| {\mathbf{A}} \right\|_{*} + \lambda \left\| {\mathbf{E}} \right\|_{\text{1}} } \hfill \\ {s.t.} \hfill & {{\mathbf{A}} + {\mathbf{E = D}}} \hfill \\ \end{array} $$
(3)

Where \( \left| {\left| {\mathbf{A}} \right|} \right|_{*} = \sum_{i} {\varvec{\upsigma}}_{i} ({\mathbf{A}}),{\varvec{\upsigma}}_{\text{i}} \left( {\mathbf{A}} \right) \) represents the i th singular value of matrix \( {\mathbf{A}},\left| {\left| {\mathbf{E}} \right|} \right|_{1} = \sum_{ij} {\varvec{\upsigma}}_{ij} \left( {\mathbf{A}} \right) \) represents the sum of the absolute values of elements in matrix E.

The relaxation method is mainly to replace the non-convex l 0 norm into the l 1 norm which can measure the sparsity function easily. Thus, we can solve the RPCA problem by using the Convex optimization or non-linear programming to approximate the original problem [11]. In practical applications, with an increasing in detection frames, the input matrix D increases rapidly. The difficulty of computer processing and the time of processing is increasing as well. Hence the processing method for real-time updating is essential.

3 PRMF Algorithm

With the increasing application of RPCA in computer vision and image processing, scholars have proposed a series of algorithms to solve the RPCA problem, such as Singular Value Decomposition (SVD) [12], Accelerated Proximal Gradient (APG) [13], Alternating Direction Method (ADM) [14] and Augmented Lagrange Multiplier (ALM) [15]. However, with an increase in the sequence of video frames, the number of the input matrix is increasing rapidly and it extends the calculation time and affects the efficiency. To solve this problem, this paper uses RPCA based on PRMF [16] to realize real-time processing of input sequence and our method can solve the above problems effectively.

3.1 Matrix Decomposition

Y is a matrix with outliers and Y = [y ij ] ∈ R m×n. The matrix decomposition of Y is expressed as follows:

$$ \mathop {\text{min}}\limits_{{{\mathbf{U}} \in R^{m \times r} ,{\mathbf{V}} \in R^{n \times r} }} \left\| {{\mathbf{W}} \otimes \left( {{\mathbf{Y}} - {\mathbf{UV}}^{{\mathbf{'}}} } \right)} \right\|_{\text{a}}^{\text{a}} $$
(4)

where W = [w ij ] is a matrix of size m × n pixels and only contains 0, 1. When the element y ij in matrix Y is not damaged, w ij  = 1; when y ij is damaged, w ij  = 0.

ɑ is the coefficient of the loss function: when ɑ = 1, it corresponds to the L 1 norm; when ɑ = 2, it corresponds to the L 2 norm.

For Eq. (4), we obtained the following formula by the regularization procedure.

$$ \mathop {\text{min}}\limits_{{{\mathbf{U}},\text{V}}} \left\| {{\mathbf{W}} \otimes \left( {{\mathbf{Y}} - {\mathbf{UV}}^{'} } \right)} \right\|_{\text{a}}^{\text{a}} + \frac{{\lambda_{u} }}{2}\left\| {\mathbf{U}} \right\|_{\text{2}}^{\text{2}} + \frac{{\lambda_{v} }}{2}\left\| {\mathbf{V}} \right\|_{\text{2}}^{\text{2}} $$
(5)

In Eq. (5), λ u and λ v are the parameters of regularization, and they are greater than zero.

3.2 Matrix Decomposition Based on Likelihood Probability

From the perspective of Bayesian probability, the problem in Eq. (5) can be regarded as a Maximum A Posteriori problem. To improve robustness, we use the L 1 norm to decompose a matrix. The model of matrix decomposition based on probability is as follows:

$$ {\mathbf{Y}} = {\mathbf{UV}}^{'} + {\mathbf{E}} $$
(6)
$$ u_{ij} \left| {\lambda_{u} } \right. \sim N\left( {u_{ij} \left| {0,\lambda_{u}^{ - 1} } \right.} \right) $$
(7)
$$ v_{ij} \left| {\lambda_{v} } \right. \sim N\left( {v_{ij} \left| {0,\lambda_{v}^{ - 1} } \right.} \right) $$
(8)

where E = [e ij ] is the error matrix of size m × n pixels and each of its elements e ij follows a separate Laplace distribution L(e ij |0,λ). We get the following expression:

$$ p\left( {{\mathbf{E}}\left| \lambda \right.} \right) = \left( {\frac{\lambda }{2}} \right)^{mn} \text{exp}\left\{ { - \lambda \left\| {\mathbf{E}} \right\|_{\text{1}} } \right\} $$
(9)

To calculate U and V, we set λ u , λ v and λ to fixed values and then use the MAP based on Bayes’ Rule, and we can get:

$$ p\left( {{\mathbf{U}}{\mathbf{,}}{\mathbf{V}}\left| {{\mathbf{Y}},\lambda_{u} ,\lambda_{v} } \right.} \right) \propto p\left( {{\mathbf{Y}}\left| {{\mathbf{U}}{\mathbf{,}}{\mathbf{V}},\lambda } \right.} \right)p\left( {{\mathbf{U}}\left| {{\mathbf{Y}},\lambda_{u} } \right.} \right)p\left( {{\mathbf{V}}\left| {{\mathbf{Y}},\lambda_{v} } \right.} \right) $$
(10)
$$ \log p\left( {{\mathbf{U}}{\mathbf{,}}{\mathbf{V}}\left| {{\mathbf{Y}},\lambda_{u} ,\lambda_{v} } \right.} \right) = - \lambda \left\| {{\mathbf{Y}} - {\mathbf{UV}}^{{\mathbf{'}}} } \right\|_{\text{1}} - \frac{{\lambda_{u} }}{2}\left\| {\mathbf{U}} \right\|_{2}^{2} - \frac{{\lambda_{v} }}{2}\left\| {\mathbf{V}} \right\|_{\text{2}}^{\text{2}} + C $$
(11)

where C is a constant independent of U, V. Thus, the problem of solving the maximum value of log p (U, V|Y, λ u , λ v ) is equivalent that of solving the minimum problem of the following equation:

$$ \mathop {\text{min}}\limits_{{{\mathbf{U}}{\mathbf{,}}{\mathbf{V}}}} \left\| {{\mathbf{Y}} - {\mathbf{UV}}^{{\mathbf{'}}} } \right\|_{\text{1}} + \frac{{\lambda_{u}^{'} }}{2}\left\| {\mathbf{U}} \right\|_{\text{2}}^{\text{2}} + \frac{{\lambda_{v}^{'} }}{2}\left\| {\mathbf{V}} \right\|_{\text{2}}^{\text{2}} $$
(12)

In Eq. (12), \( \lambda_{u}^{{\prime }} = \lambda_{u}^{{\prime }} /\lambda \) and \( \lambda_{v}^{{\prime }} = \lambda_{v}^{{\prime }} /\lambda \).

3.3 PRMF Algorithm Based on RPCA

The general equation for RPCA has been presented in the previous section:

$$ \mathop {\text{min}}\limits_{{\mathbf{A}}} \begin{array}{*{20}c} {} & {\left\| {\mathbf{A}} \right\|} \\ \end{array}_{ * } + \lambda \left\| {{\mathbf{D}} - {\mathbf{A}}} \right\|_{\text{1}} $$
(13)

We have known that Eq. (12) is the matrix decomposition equation based on probability and Eq. (13) is the general equation of RPCA, and there are some similarities between them. Literature [17] proposes a theorem of matrix factorization. For any matrix ZR m×n, we have the following expression:

$$ \left\| {\mathbf{Z}} \right\|_{ * } = \mathop {\text{min}}\limits_{{{\mathbf{U}}{\mathbf{,}}{\mathbf{V}}{\mathbf{,}}{\mathbf{Z}} = {\mathbf{UV}}^{'} }} \frac{\text{1}}{\text{2}}\left( {\left\| {\mathbf{U}} \right\|_{\text{2}}^{\text{2}} + \left\| {\mathbf{V}} \right\|_{\text{2}}^{\text{2}} } \right) $$
(14)

When \( \lambda_{u}^{{\prime }} = \lambda_{v}^{{\prime }} = \lambda_{r} \) and r = k, we can get the following results by substituting Eq. (12) for Eq. (14):

$$ \begin{aligned} \mathop {\text{min}}\limits_{{{\mathbf{U}}{\mathbf{,}}{\mathbf{V}}}} \left\| {{\mathbf{Y}} - {\mathbf{UV}}^{{\mathbf{'}}} } \right\|_{\text{1}} + \frac{{\lambda_{u}^{'} }}{2}\left\| {\mathbf{U}} \right\|_{\text{2}}^{\text{2}} + \frac{{\lambda_{v}^{'} }}{2}\left\| {\mathbf{V}} \right\|_{\text{2}}^{\text{2}} \hfill \\ \begin{array}{*{20}c} {} & = \\ \end{array} \mathop {\text{min}}\limits_{{{\mathbf{U}}{\mathbf{,}}{\mathbf{V}}}} \left\| {{\mathbf{Y}} - {\mathbf{UV}}^{{\mathbf{'}}} } \right\|_{\text{1}} + \lambda_{r} \left\| {{\mathbf{UV}}^{'} } \right\|_{ * } \hfill \\ \begin{array}{*{20}c} {} & = \\ \end{array} \mathop {\text{min}}\limits_{{{\mathbf{X}},rank\text{(}{\mathbf{X}}\text{)} = k}} \left\| {{\mathbf{Y}} - {\mathbf{X}}} \right\|_{\text{1}} + \lambda_{r} \left\| {\mathbf{X}} \right\|_{ * } \hfill \\ \end{aligned} $$
(15)

Through the above analysis, we established the RPCA method based on the PRMF. Next, we will use our method to solve the problems of surface defects detection of insulators effectively.

4 Analysis of Insulators Surface Defects Detection

4.1 Experiment on Public Datasets

Background modeling is a common application in computer vision processing, with the purpose of separating the dynamic part from the static background. The dynamic part includes moving objects and illumination variations. The static part of surveillance video is generally unchangeable, which can be regarded as the low-rank component A. Moving objects and illumination variations change over time and they can be regarded as sparse component E. This paper selects 200 frames of size 144 × 176 pixels from public datasets as test samples. As shown in Fig. 1:

Fig. 1.
figure 1

Foreground extraction results based on PRMF-RPCA, (a) original image frame, (b) the low-rank component, (c) the sparse component

From the perspective of computation time, we compared the PRMF-RPCA algorithm with several common RPCA algorithms. From Table 1, we found that PRMF-RPCA algorithm improves the efficiency effectively.

Table 1. The running time of several common RPCA algorithms

4.2 Surface Defects Detection of Insulator Strings

Insulators are an indispensable element for transmission lines. The good state of insulators is a prerequisite for power transmission line operation. But insulators can still be damaged by the wind and the sun in a natural environment. Harsh environments will lead to weathered oxidation, breakage and cracks of insulator strings. [18]. This paper presents a method for detecting surface defects in insulators based on PRMF-RPCA. The experiment used 8 insulator images from aerial video as an example. The experimental results are shown in Fig. 2.

Fig. 2.
figure 2

Surface defects detection results of insulator, (a) the to-be-detected insulator string, (b) the low-rank component, (c) the sparse component

As is shown, Fig. 2(a) displays the images of an insulator string. We can find that the insulator string is oxidized into holes in the first image. In the third image, the insulator has a little breakage. Other images exhibit different defects. Figure 2(b) shows the non-defect low-rank component. Figure 2(c) a defective sparse component. From Fig. 2, we can find that except for the defective part, the sparse component is in white and the rest is in black. The rate of defect detection of insulator strings is close to 100%.

4.3 Insulator Surface Defects Detection

To further detect tiny defects of the insulator string, our method is based on insulators. Insulators share a strong similarity which is expressed as the linear low-rank component in the image matrix. The defects on the insulator surface are different generally, as expressed by non-zero elements in the sparse matrices. Therefore, based on the above analysis, we use RPCA to detect surface defects of insulators.

We convert a set of insulator images into a set of column vectors: X 1 , X 2 ,……, X N . And then we generate matrix D = [X 1 , X 2 ,……, X N ] ∈ R m×n by concatenating all the vectors and using D as the input of RPCA, where m is the number of pixels per image and n is the number of input images. To verify the feasibility and practicability of the principle and algorithm of PRMF-RPCA proposed in this paper, we select 20 images of insulators of size 256 × 256 pixels. As shown in Fig. 3: the type of defects includes noise, cracks, and string breakage.

Fig. 3.
figure 3

Insulator images

The experimental results of using the PRMF-RPCA method are shown in Fig. 4: (a) is the non-defective low-rank component A, (b) is the defective sparse component E.

Fig. 4.
figure 4

Detection results of surface defects of insulator, (a) low-rank matrix image, (b) sparse matrix image

The experimental results show that we can detect the surface defects of insulator from 20 similar images by PRMF-RPCA algorithm successfully. From Figs. 3 and 4(b) we can see that the defects information which got by PRMF-RPCA is the same as the result of manual detection exactly and it is marked with white clearly. The non-defective information is displayed as a black picture in Fig. 4(b).

From Table 2 we can see that our method’s running time of 20 images is 24.60 s; the average time is about 1.2 s, but the detection time of APG is 850.32 s, IALM is 122.52 s, and ALM is 168.5 s. From a real-time perspective, our approach has made significant progress over other methods.

Table 2. Detection time of insulator surface defects in several common algorithms

We can distinguish the categories of insulator surface defects simply by the sparsity. But the different defects of insulators are expressed by sparse component, which is inadequate. As the experimental results shown in Fig. 4, we found that the gray value of sparse component of normal insulator is low, and then the image is smoother. But the gray value of string breakage changes greatly, and the smoothness of string breakage is poor.

$$ S_{p} = \frac{\text{1}}{M}\sum\limits_{i = 0}^{M - 1} {\left( {x_{i} - \bar{x}} \right)^{\text{2}} } $$
(16)

In Eq. (16), x i is the value of each pixel of image, \( \bar{x} \) is the mean of the image. To distinguish the categories of surface defects of insulators better, we introduce a measure of smoothing to detect the categories of insulators. The smoothness of each category is shown in Table 3: we can conclude that the smoothness of normal insulators is smaller and its image is smoother, but the smoothness of the crack is relatively smaller. Because the noise is dispersed in insulators and it is heterogeneous, and the smoothness of the noise is larger than others’. Thus, we can detect the insulator surface defects better by the smoothness.

Table 3. Smoothness values of insulation surface defects

5 Conclusion

To detect insulator surface defects from a mess of aerial images, the traditional artificial method is difficult to feed the actual requirements of the engineering. Subsequent scholars have proposed a variety of defects detection methods of insulator surface and they have achieved some results. However, most of their methods have plenty of shortcomings and can only detect categories monotonously.

In this paper, for the similarities of insulators, we decompose the defective insulator into the low-rank component and the sparse component by PRMF-RPCA. Specifically, we introduce a measure of smoothing to detect the categories of insulators. The experimental results show that the method improves the efficiency and ability of surface defects detection of insulators, and realizes the real-time updating detection of insulators.