Abstract

Short circuit is a key factor which drastically affects the efficiency of metal electrorefining. Infrared image of the intercell busbar region is used to perform short circuit detection. To cope with the high thermal background, a two-level short circuit detection method is designed. Firstly, with background subtraction, high intensity short circuit electrodes, as well as the background, are removed, and normal working electrodes are preserved. In the second stage, suspicious short circuit areas are sifted out by normal electrode detecting and texture period estimation. Gaussian difference filter (DoG) which is based on the human visual system is improved to match the target gray distribution. A comparative experiment indicates that the proposed orthogonal DoG outperforms the original DoG and top-hat in the accuracy of normal electrode detection. The two-level detection method in this paper is applied in a copper electrolysis plant and exhibits superiority in locating short circuits and avoiding miss detection.

1. Introduction

Electrorefining of copper, lead, and nickel is an important electrochemical process involving a mass of densely distributed electrodes as shown in Figure 1. Plate electrodes are inserted into the cell full of hot electrolyte, and the electrode conducting rods hang at the intercell busbar. Short circuits between electrodes can drastically decrease the current efficiency, the electrolyte stability, and the copper quality [1]. Executing large-scale manual inspection is time-consuming, and the electrolysis environment is harmful to human health. Therefore, online detection and fault diagnosis of the electrolytic cells are essential.

The infrared (IR) image method [24] has received more and more attention due to the capacity of large area monitoring. An IR image taken at the top of copper electrolysis cells in our work is shown in Figure 2. The image contains three electrolytic cells. Each cell is mainly composed of canvas area and intercell busbar area. Canvas region is often used as a region of interest (RoI) for fault detection [3, 4], as short circuit raises the temperature of electrode conducting rod that is under the canvas. However, missed detection often occurs, due to some random factors such as water accumulation on the canvas and the noncontact between the canvas and the electrode. The loss of production caused by missed detection is more serious than that caused by error detection. To avoid missed detection, the intercell busbar area is proposed as the RoI in this paper based on the temperature characteristics of the area.

However, the high thermal background and the compact electrode distribution pose challenges for high temperature short circuit target detection. The contrast between the background and the target is smoothed, making it difficult to distinguish the target directly [5]. Compact electrode distribution arises new challenges for the identification and location of short circuit electrodes.

Note that normal working suspenders on the busbar keep better contrast with the background. Combining this characteristic with the regular texture of the busbar area, we design a two-level detection scheme (Figure 3). The objective is to identify short circuit area by detecting the recognizable normal working suspenders. In the first stage, background subtraction is implemented with a median filter [6]. The aim is to remove the background as well as short circuit suspenders and preserve normal working suspenders. The realization of the idea benefits from that the temperature of short circuit suspenders is close to the background so that the gray intensity of the two are approximate. Although the background subtraction highlights these preserved normal working suspenders, these small and dim targets are still hidden in a heavy clutter due to the complex grayscale distribution of the intercell busbar area, which bring obstacles for detection. This is referred to as a small target detection problem [79]. In the second stage, we detect normal suspenders with an improved DoG filter which is based on the visual attention model. Incorporate the texture period of the busbar area into the short circuit diagnosis. If a distance between two located normal suspenders is larger than the texture period, the opening between two normal suspenders is diagnosed as a suspicious short circuit area.

This paper is organized as follows: Section 2 describes the thermal distribution of the intercell busbar and discusses the detection difficulties. In Section 3, details of the proposed two-level detection scheme and the improved DoG filter are presented. In Sections 4 and 5, experimental results and concluding remarks are reported.

2.1. Thermal Distribution Characteristics of Intercell Busbar and Problem Description

IR image of the electrolytic cell is the result of resistance heat and heat conduction. As shown in Figure 1, the middle busbar receives parallel currents from cathode () of a cell, rebalances the total current, and splits it to each anode branch () of the next cell [10, 11]. When working normally, the temperature of the busbar is higher than that of conducting rods [12]. Therefore, in the image, all electrode suspenders are against a background with high grayscale intensity.

After short circuiting, a large current flows through the suspender into the busbar. Compared with other parts of the rod, the connected suspenders temperature rises firstly [13, 14]. Along with the time, the intensity of the fault suspenders gradually approaches that of the background and eventually exceeds it. Thus, the gray difference between the suspender and the background is weakened, and the suspender is blended into the background (Figure 4). Unlike short circuited suspenders, normal working suspenders keep better contrast with the background. Furthermore, all suspenders are evenly arranged on the busbar, like a row of fence. Among normal working suspenders, short circuited ones appeared as an opening of the fence.

Expect that the current on each electrode branch is equal. However, due to the complex electrochemical reaction, the currents of each electrode are various. The current will find its path of least resistance on the busbar. It causes nonuniform temperature distribution on the busbar, which further results in heavy background clutter on the image. Against the heavy clutter background, there are suspenders occupying a few pixels, which bring difficulties for detection.

2.2. Small Target Detection Based on the Human Visual System

Robust detection of small targets in a complex background is difficult due to the low signal-clutter ration (SCR) [15, 16]. Background suppression [17, 18] and highlight target [19, 20] are two mainstreams to solve the problem. These studies reveal that the background is spatially correlated, while the target and the background are spatially discontinuous. To synchronously suppress background clutters and enhance targets, an idea based on local difference is proposed [21]. It utilized a variable-size window to search the target. It is effective in the case of sparse distribution of targets, but not suitable when small targets are densely distributed. If the distance between two adjacent targets is less than the window size, the gray value of the adjacent target will reduce the local gray difference and affects the detection result. The human visual system [22] is also a local-based mechanism that utilizes visual attention to extract key information. The intensity distribution of a small target can refer to a Gaussian-like spot, with this assumption difference of Gaussian filter (DoG) proposed to accurately locate targets [23]. Through gray distribution pattern matching, the DOG filter can simultaneously suppress background and enhance targets. For the target with various scales, locations can be determined by searching the maximum response point in a continuous scale space [24]. The result is not affected by targets distribution. But suspender in our problem has a unique gray distribution pattern. To match suspenders better and improve the accuracy, we improve the DoG filters parameters. Based on the separability of the Gaussian convolution kernel, we fix the scale parameter of the row convolution kernel and only change the scale parameter of the vertical convolution kernel. Results show that the improved orthogonal DoG filter can effectively increase the detection rate of normal suspenders and further ensure the accuracy of short circuit diagnosis.

3. Two-Level Short Circuit Detection Scheme

3.1. First Stage: Background Removal

Suspenders are located near a horizontal line between two heterogeneous backgrounds, the canvas region and the busbar region, as shown in Figure 5. The heterogeneous background will increase the false alarm rate [6, 21]. To preserve normal electrodes only and reduce the influence of the heterogeneous background, we adopt a one-dimensional median filter to model the background. Then, the background is subtracted from the original image. The one-dimensional median filter is transversal (equation (1)); in our work, we set . The background removal process is shown in equation (2). As in our problem the normal suspenders gray value is lower than that of the background, to display it better the result is reversed:

The estimated background of the intercell busbar and the result of background removal are shown in Figure 5. After background removal, all normal working suspenders are retained and enhanced. These normal suspenders are distributed regularly. At the original short circuit position, an opening is formed (Figure 5(c)). Next, we will detect these retained normal suspenders and identify the opening.

3.2. Second Stage: Suspicious Short Circuit Area Identification
3.2.1. Small Target Detection Using DoG Filter

The intensity distribution model of a small target is as the following equation, where is the peak intensity of the target. denotes the central position of the target. is the standard deviation and it determines the target size:

Laplacian of Gaussian (LoG) filter (equation (4)) [25] is the second derivative of Gaussian function (equation (5) and has a strong filtering response to the spot-like target. The LoG filter was introduced to enhance the gray difference between the small target and background [26]. Figure 6 [23] shows the distribution pattern of a small target and an LoG filter. The LoG operator convolves with the target image. When the operator is of a similar size to the target size, the response will be enhanced at the center area (+) and suppressed at the surrounding area (−). Therefore, by the operation of equation (6), the target center can be located at the maximum response after convolution, where is the convolution operation:

However, usually, the target size is unknown. When there are multiple targets with different sizes that need to be detected, a single-scale LoG operator cannot meet the detection requirements. Multiscale representation is an effective method to address the problem [27]. Multiple scale operators are used to construct a scale space. Searching for the largest response in a certain scale space can locate a target that is close to the scale of the space. Scale space is constructed by the convolution of a variable-scale Gaussian function with the input image as the following equation:

In [28], the difference of two Gaussian functions (DoG) with different standard deviations is proved to be an approximation of the following scale-normalized LoG equations:

Hence, the DoG scale space is constructed as equation (10). is a constant multiplicative factor, representing the scale change:

When the varied coordinates and of DoG approach the central location and the radius of the target in the image, the target response is larger, and the local extremum is obtained. There is a candidate target at the position. Different size small targets detection problem is transformed from equation (6) to the following equation:

After constructing the scale space, lots of candidate targets can be located by searching the maximum response. But there are many false targets as the DoG filter is sensitive to noise. SCR is an effective numerical criterion for screening candidate targets [23], and the calculating of the SCR is as equation (12). It is the quantitative calculation of the gray difference between the target and the local background:where and represent the gray intensity of the target and the local background, respectively. denotes the standard deviation of the local background. Figure 7 shows targets with different SCR. The higher the SCR is, the better the contrast between the target and the local background is, and the more easily is the target to be recognized.

3.2.2. Normal Working Suspender Detection with Improved DoG Filter

The small target detection theory is based on a critical assumption that the target structure is isotropic Gaussian. It is acceptable in a particular condition. But in reality, the targets shapes are usually nonisotropic or deform on the image plane due to the optical effect. In our problem, normal suspenders are rectangular in shape and parallel to the coordinate axis of the image. Due to thermal diffusion and the inherent low resolution of infrared thermal imaging camera, the shape of the exposed suspender is elliptical, and equation (13) is used to model the structure: is the target central position. is the peak intensity which can automatically be determined after detecting the central position. Here, we set two scale parameters and consider that these two scale parameters are not related. It is because of the rigid nature of the hanging ear. The length may vary with the cover operation, but the width is fixed. Correspondingly, the nonisotropic Gaussian functions equation (14) is used to construct matching filters:

Like equation (9), the corresponding LoG filter which is the second derivative of the Gaussian is approximately the derivative about the scale: where is a constant. Utilizing the separability of convolution, we only change scale in constructing DoG scale space:

Since the scale of width is a constant, change the length scale to build scale space, and the space from the original three dimensions reduced to two, which greatly reduces the difficulty of extreme value search. Figure 8 shows the detection result of Figure 5(c) with the improved DoG filter. There is an opening with a large lateral distance between the two detected normal suspenders. We considered it a suspicious short circuit area.

3.2.3. Suspicious Short Circuit Area Confirmed

A numerical standard about the lateral distance is still required to recognize the suspicious short circuit area. Texture feature is an important feature in industrial vision [29]. Considering the busbar area presents regular texture, the period of the textures can be used as the criterion. The regular texture is characterized by repeated patterns of a structure unit, which means that the pixel intensities in the structure are highly spatial related. The gray level cooccurrence matrix (GLCM) [30] was proposed to describe the spatial correlation of gray intensities, and the correlation descriptor of the GLCM is the quantitative calculation of the linear dependence of two pixels.

In the busbar area, pixels intensities are repeating in equal intervals along the horizontal. A transverse structure is defined as Q (Figure 9). The structure describes a relative position of two pixels with “ pixel offset on the right.” The correlation of the two pixels in the structure with an offset is calculated according to where is the computed gray cooccurrence matrix according to Q and is the dimension of . and are the means of and , respectively, and and are the corresponding standard deviation.

Changing the offset value , we can compute a sequence of gray cooccurrence matrix , where is an integer and the value range is . The correlation curve of structures for different transverse offsets is as shown in Figure 10. The curve presents a repetitive model; the correlation value is larger at an even offset. Though the correlation values at the even offsets are not absolutely equal, the repetitive pattern reveals that the texture period is 2 pixels.

Compute the transverse distance between two adjacent detected normal suspenders and compare it with the estimated period of texture. When the computed transverse distance is larger than the period, the corresponding area is a suspicious short circuit area. The number of suspenders contained in a suspicious area is calculated by equation (19). is the suspender number. is the pixel distance of the suspicious short circuit area, and is the transverse period:

4. Experiment and Results

4.1. Fault Sensitivity Comparison between Busbar Area and Cloth Area

To explain that the intercell busbar area is more suitable for short circuit detection than the cloth area, we utilize a commonly used diagnostic method, the gray-scale longitudinal accumulation of the two areas, to diagnose a short circuit. Figure 11 shows an example IR image; the marked electrolytic cell contains four short circuits which have been diagnosed manually.

Figure 12 represents the gray accumulation curves of the two areas. From the curve of the cloth area, three peaks can be diagnosed as short circuits by a threshold. But short circuit 4 is missed because the corresponding temperature did not rise significantly. Many factors can lead to this phenomenon such as the cover cloth is not in contact with the electrode, spray water, and short failure time. From the curve of the intercell busbar, four peaks can be diagnosed as short circuits, though the diagnostic information provided by the intercell busbar is disturbed by more severe clutter.

4.2. Comparison of Normal Suspender Detection Accuracy of Different Methods

Normal suspender detection is the key step of the proposed two-level short circuit detection scheme. We compare the detection performance of the proposed orthogonal DoG filter with the DoG filter [23] and the top-hat filter since the two methods have achieved good performance in detecting small targets. The experiments are executed on the intercell busbar of the target cell in Figure 11. There are 230 suspenders on the busbar, and the sequence numbers of the four short circuits have been manually identified in advance. Precision and recall rate of the normal suspender are adopted as the evaluation metrics:where is the number of true positive normal suspenders; is the number of detected targets; and is the actual number of normal suspenders in the cell.

After the same background removal preprocessing, we use the three methods to detect the normal working suspenders. When we use the orthogonal DoG filter to construct scale space, the horizontal scale parameter is a constant , while varies as defined in equation (16). The same as the value set in [28], and the number of scale space image is 8. In the DoG filter method, we set , and the scale parameter changes according to equation (10).

Figure 13 shows the enlarged view of the initial detection results. For convenience, we mark an asterisk on each detection target. More normal suspenders are detected by the two DoG methods than those of the top-hat method, especially on the right blurry area. That is because the top-hat method involves morphological operation, so a binary image is needed. To obtain the binary image, a gray threshold is needed. After the background is removed, the gray intensity of the target in the blurred area is too weak to be ignored by the threshold operation. The DoG detection methods can enhance the contrast while matching the target gray intensity distribution pattern. Therefore, in the blurry area, the DoG methods show better detection ability than the top-hat method. The orthogonal DoG filter detects more targets than the original DoG filter, which can better meet the needs of short circuit detection. The same suspender is repeatedly detected, and this phenomenon can be found in both methods. But with the orthogonal DoG filter, this situation will be more serious. Because the varying longitudinal scale is sensitive to the gray scale continuity of a suspender. When estimating the background, a horizontal median filter is used, which inevitably changes the gray value of the suspender, resulting in longitudinal discontinuity of gray intensity after subtracting the background. The same suspender is considered by the filter as two detection targets. It will reduce the precision of the orthogonal DoG method.

An SCR threshold 4 is applied to filter candidate targets and eliminate noise targets. The final detection results are shown in Figure 14. The orthogonal DoG filter detects 241 targets. The number of that with the DoG filter is 131. Table 1 summarizes the statistical results in terms of the recall rate and precision. Though the precision with the DoG filter is 0.4 higher than that with the orthogonal DoG filter, it is within an acceptable range. The orthogonal DoG outperforms the DoG filter with respect to the recall rate, which means that the proportion of the accurately detected normal suspenders is high. This is due to the fact that changing scale parameters can better match the intensity distribution pattern of the suspender.

4.3. Results and Discussion of the Accuracy for Short Circuit Detection

The ultimate purpose of normal suspender detection is to locate suspicious short circuit areas and further identify the real short circuits. Base on the period of the texture, the circle areas in Figure 14 are selected as suspicious short circuit areas that belong to the target cell. There are nine suspicious short circuit areas obtained with the improved orthogonal DoG method, while the number of that with the DoG filter is eleven. Although the four known short circuits are all included in the suspicious short circuit areas determined by the two methods, it is obvious that the lateral distances of the suspicious short circuit areas obtained by the orthogonal DoG method are smaller. It demonstrates that the improved orthogonal DoG method can provide less uncertainty for real short circuit identification. Region 1, region 2, region 6, region 7, and region 8 identified by the orthogonal DoG method are areas where the blur is serious. The blur is caused by uneven current distribution among electrodes. The currents on the electrode of these areas are larger than normal and may further trigger a short circuit; thus, these areas need to be inspected frequently. According to the period of the texture and the horizontal distance of the suspicious short circuit areas (equation (19)), the number of electrodes in each suspicious short circuit area is calculated. The number of electrodes contained in each suspicious short circuit area is shown in Table 2.

The determined serial numbers of the four real short circuits with the two methods are shown in Table 3. With the improved orthogonal DoG filter, the detected short circuits serial numbers are closer to real serial numbers. But due to the accumulation of errors, the precision will decrease. So, the deviation of the serial number of short circuit 4 is larger than others. The orthogonal DoG filter is superior to the DoG filter in providing higher precision for short circuit serial number confirmation.

4.4. Results and Discussion of On-Site Application

The detection system was verified at a copper electrolysis plant in China. Details of the thermal camera are as shown in Table 4. The camera is mounted vertically down on top of the crane and can be moved with the crane, with a distance of 8.3 m from the lens to the cell surface (Figure 15).

The detection system continuously detected 234 cells whose surface is covered with cloth. There are 57 cathode electrodes in each cell, and a total of 75 short circuits have been identified manually in advance. The detection statistical results are shown in Table 5.

The system detected 76 apparent high temperature short circuits, 13 of which were fault-detected, and these misdetected electrodes were short circuited electrodes that had been excluded, although their temperature had not returned to normal. 99 potential short circuits were diagnosed, of which 87 were detected by error. The main reason for the high error detection is that the uneven current distribution leads to an increase in the number of blurry areas on the busbar, which are diagnosed as suspicious short circuit areas. Although this operation reduces the accuracy of the detection, it effectively avoids missed detection and reduce the influence time of a low electrolytic efficiency state.

These real short circuits are randomly distributed in electrolytic cells. The histogram of serial number error distributions of these short circuit is shown in Figure 16. The maximum absolute error was 7 electrodes, but short circuits with an error of fewer than 4 electrodes account for . This means that the serial number of the vast majority of short circuited electrodes can be precisely located, which reduces the workload of staff in subsequent short circuit removal.

5. Conclusion

In this research, we design a two-level short circuit detection scheme for copper electrorefining based on the infrared image. After analyzing the cells circuit and thermal distribution characteristics, the intercell busbar region is used to perform short circuit detection. In order to solve the problem that short circuited electrodes are against high-thermal background, in the first step, short circuited electrodes are regarded as parts of the background due to the close gray intensities. Background subtraction is introduced. By removing background as well as short circuited electrodes, normal working electrodes can be extracted from the high intensity background. At the same time, an opening is formed at the position of the short circuited electrode. In the second step, normal working electrodes are detected with an improved DoG filter firstly. Then, considering the texture period of the busbar area, a suspicious short circuit area can be identified by comparing the distance between two detected targets and the estimated texture period. In this step, we improve the scale parameter of the DOG filter according to the electrode shape characteristics and use the separability of Gaussian convolution to calculate, which greatly improves the detection rate of normal working electrodes and provides a guarantee for suspicious short circuit area detection. Benefiting from this scheme, we can effectively avoid short circuit missed detection and help workers to concentrate on cells maintenance.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (Grant nos. 61673400 and 61890930-2) and the Postgraduate Research Innovation Project of Central South University (Grant no. 502221809).