A Deep Extractor for Visual Rail Surface Inspection
간접 관련 필름·전자재료 · (15) 디스플레이 패널재료 (11) 배리어 필름(12) 증착 필름
기본 정보
- 저자
- DOI
- 10.1109/access.2021.3055512
- 저널
- IEEE Access
- 발행년도
- 2021
- 발행기관
- Institute of Electrical and Electronics Engineers
- 피인용수
- 18
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1109/access.2021.3055512
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W3128847319
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (15) 디스플레이 패널재료
- 부 분야
- (11) 배리어 필름, (12) 증착 필름
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- visual inspection, semantic segmentation, defect detection, deep learning, industrial products
- 판단 근거
- 본 논문은 철도 레일의 결함을 탐지하는 딥러닝 기반의 시각적 검사 알고리즘을 다루고 있습니다. 이는 코오롱인더스트리의 직접적인 제품은 아니나, 디스플레이 패널(15)이나 필름(11, 12) 등 정밀한 표면 결함 검사가 필수적인 제조 공정의 자동화 및 품질 관리 기술로 전이 적용이 가능합니다.
- R&D 활용 포인트
- 디스플레이 패널, 필름, 인공피혁 등 고부가가치 소재의 표면 결함(스크래치, 이물 등)을 실시간으로 탐지하는 AI 비전 검사 시스템 고도화에 활용 가능합니다.
- 평가 입력
- 본문 59,666자 중 30,032자 발췌
초록
본문 59,666자
본문 펼치기
섹션 본문 50문단 · 41,243자
(제목 없음)
1Rail surface inspection using a visual inspection system is an important task in the maintenance of railway networks. Recent inspection approaches have attempted to harness low-level features to identify visual defects. These methods' main issues are the limitations of low-level features and prior information about rail surfaces that show a wide variety of visual appearances on dynamic backgrounds. To overcome these problems, we propose a deep extractor (DE) that combines the strengths of fully convolutional networks and conditional random fields (CRFs), so that the deep network can learn the abstract features needed for the specified inspection task. Specifically, motivated by fully convolutional networks, a bilateral fully convolutional network containing two branches is proposed here: one encode-decode branch focuses semantic meaning; the other decode-encode branch encodes information on tiny defects. The two branches are aggregated to obtain a high-level feature map. Furthermore, the mean-field inference of a dense CRF with Gaussian pairwise potentials formulated as a recurrent neural network (CRF-RNN) is introduced to contribute to smoothing constraints and obtaining a fine-grained inspection result. By doing so, it can avoid offline post-processing and further lead the whole deep architecture to achieve end-to-end deep learning. Compared with classical approaches, our approach outperforms state-of-art approaches in analyzing two publicly available datasets.
I. INTRODUCTION
2Inspecting rail surfaces, a part of general rail inspection, plays an important role in daily rail maintenance. Surface defects must be carefully inspected, as they are potential causes of accidents, sharply increase wheel-rail forces, and induce significant traffic noise. Historically, inspection was mostly by professional observers using special calipers. This is expensive, time-consuming, somewhat subjective, and even dangerous [1], [2]. Therefore, the development of automatic and nondestructive inspection systems is strongly driven by practical requirements.
3Visual inspection systems [3] benefit from being nondestructive and intuitive to use, and have received much attention in a variety of industrial settings [4]. They have been applied to aspects of rail inspection (such as track-profile
4The associate editor coordinating the review of this manuscript and approving it for publication was Chih-Yu Hsu . measurement [5], gauge measurement [6], bogie block key inspection [7], fastening elements inspection [8]- [10], and track surface detection [11]) and also to a wide range of very diverse products (such as food cans [12], LCD panels [13], large-aperture optical elements [14], electromechanical parts [15], and film capacitors [16]). This study focuses on a promising and nondestructive system for the particular task of inspecting rail surfaces for discrete defects (RSDDs).
5Although visual inspection has attracted much attention and achieved impressive success, three factors pose specific challenges: inhomogeneous illumination leading to dynamic backgrounds, reflection variability leading to low contrast and blurry contours of defects, and noise induced by the system [17]. However, in comparison to the other fault inspection tasks mentioned above, identifying RSDDs is more difficult, because it involves the additional considerations of limited visual features and prior information being available for recognition and detection. The most reliable visual feature to distinguish discrete defects from a dynamic background is local gray-level information. In addition, RSDDs always appear in a random or arbitrary manner with various shapes and sizes. The task limitations prevent inspection systems from adopting most object recognition methodologies based on sophisticated texture and shape features [18]. That is to say, although RSDD inspection can be essentially regarded as a target detection problem, the targets do not share common texture or shape features and usually lack adequate prior information.
6Several RSDD inspection methods have been proposed in recent years. One way to model this kind of fault is using a combination of contrast enhancement and localization [3], [18], [19]. This involves first enhancing the contrast between defects and the background, then finding the desired defects using a localization algorithm such as projection profile (DLBP) and adaptive threshold binarization. Specifically, the method of LN+DLBP first enhances contrast between defects and background using the local normalization (LN) algorithm, and then identifies possible defects by the defect localization based on projection profile (DLBP) algorithm. Instead, the method of MLC+PEME uses Local Michelson-like contrast (MLC) and proportion emphasized maximum entropy (PEME) algorithms. In addition, a new inverse Perona-Malik diffusion model presented for image enhancement [19] provides an adaptive threshold binarization to identify desired defects. These methods focus on enhancing defects, and have achieved promising performance under their experimental setup. However, these algorithms are greatly affected by irregulars (i.e., noise points), and generate many false positives when handling complex rail surface images with various appearances of defects and dynamic backgrounds. Accordingly, some previous works [17], [20] have posed this problem in an alternative way to explore the characteristics of the background rather than the defects. These methods treat a railway line as a whole, and focus on homogeneous background modeling by considering spatio-temporal characteristics. Specifically, the method of coarse-to-fine extractor (CFE) [17] obtains background modes that based on a mean shift algorithm. It is computationally expensive. Background-oriented defect inspector (BODI) [17], [20] builds a background model for each longitudinal line by randomly taking a collection of pixels along it. The underlying idea is that it is more reliable to estimate the statistical distribution of a background pixel with a small number of close values than with a majority of all values. Experiments have shown promising performance, demonstrating somewhat robust inspection. However, the background is usually dynamic and complex due to variable illumination, weather, or camera shake, which makes background modeling significantly challenging. Experimental results have shown that railway lines with dynamic backgrounds greatly affect these background modeling-based methods. The robustness of these traditional algorithms for RSDD inspection is somewhat limited, and achieving robust detection remains an open problem.
7Developments of computing performance and technology have allowed the simulation of the learning processes of the human brain to become a hot research topic, especially the simulation of neurons to build networks. Deep learning has a great influence in the field of computer vision, and it is widely used in the field of industrial defect detection, e.g. track fastener recognition [9], [10]. Generally, traditional machine vision algorithms usually deal with features that are easy to extract and easy to quantify, such as color, area, roundness, angle, length, etc. That is to say, it is difficult for traditional machine learning algorithms to model and migrate the features completely for various of defects. However, with the development of deep learning, many features that are difficult for the human eye to directly quantify can be automatically learned by deep learning. There are many features that we cannot quantify through traditional algorithms, or that are difficult to achieve, deep learning can handle them. Representative works [21], [22] have revolutionized deep-learning methods, promoting developments in the field of machine learning and pattern recognition, such as image recognition [23], [24], object detection [25]- [27], and image segmentation [28], [29]. Convolutional neural networks (CNNs), a specialized area of deep learning, apply a convolution operation to an artificial neural network, and utilize local perception and weight sharing at the same time. This makes them potentially useful for inspection problems.
8The key insight is to learn a strong feature representation end-to-end for the pixel-level labeling task instead of handcrafting features with heuristic parameter tuning.
9Although CNN-based methods have achieved great success, the following two points are relevant to the task of RSDD inspection.
10• Generally, deeper CNNs have much more semantic meaning. However, most of the desired defects in a rail surface are quite small. Therefore, traditional CNNs such as FCN [28] and DeepLab [29] can further reduce the chance of getting a fine segmentation output.
11• Defects in a rail surface are compact. However, CNNs lack smoothness constraints that encourage label agreement between similar pixels and spatial and appearance consistency of the labeling output. Lack of such smoothness constraints can result in poor object delineation and small spurious regions in the segmentation output [30], [31]. In this paper, we propose a deep extractor (DE) for RSDD inspection. As presented in Figure 1, the DE first uses CNNs to obtain a high-level feature map, and then employs conditional random fields (CRFs) inference to refine weak and coarse pixel-level label predictions and produce finegrained segmentations. In order to handle the inspection of tiny defects, a bilateral fully convolutional network (biFCN) containing two branches is proposed here. Specifically, one branch, similar to FCN, adopts a regular encoder-decoder procedure to extract high-level meaning from the whole image. The other branch, like inverse FCN, adopts a decoderencoder procedure to supplement missed defect information. The output two feature maps are aggregated to obtain a high-level feature map. As semantic meaning and detailed information of tiny defects could be trained and encoded automatically, the biFCN framework is potentially more suitable for the specified inspection task. Furthermore, mean-field inference of dense CRFs with Gaussian pairwise potentials reformulated as a recurrent neural network (CRF-RNN) is applied to overcome the drawbacks of using CNNs for pixellevel labeling tasks. Overall, our DE combines the strengths of both biFCN and CRF-RNN in a unified framework, giving the whole deep architecture an end-to-end deep-learning solution for the pixel-level semantic image segmentation problem. We evaluated the proposed method on the Type-I and Type-II RSDD datasets. The experimental results show that the DE achieves a significant improvement in accuracy, demonstrating its superiority over two baseline methods for rail inspection.
12Considering the current literature, this paper makes three main contributions. First, an end-to-end deep architecture for RSDD inspection is proposed. The core idea is that CNNs perform feature extraction to produce a coarse map that is later refined by the CRF. Although the proposed architecture is general, this is the first study to introduce a deeplearning framework to the field of rail surface inspection and to demonstrate its superiority over baseline methods. Second and most important, a biFCN containing two branches is proposed. In comparison with standard fully CNNs, the biFCN introduces an additional decode-encode branch to encode information about tiny surface defects to a certain extent. By doing so, the two branches can complement each other, and experimental results demonstrate the proposed method's advantages. Third, the proposed architecture combines the strengths of both biFCN and CRF-RNN in a unified framework; this end-to-end learning for the whole image makes our architecture more suitable for this specific task than the baseline methods.
13The remainder of this paper is organized as follows. Section II gives the overview of the proposed method and describes details. The experimental setup and results are presented in Section III. Our conclusions follow in Section IV.
II. RELATED WORKS
14The RSDD inspection problem is related to the topic of the semantic segmentation [32]. Semantic segmentation, as a step towards scene understanding, is a challenging problem in computer vision. It refers to the task of assigning semantic labels, such as person and sky, to every pixel within an image. Recently, Deep Convolutional Neural Networks (DCNNs) [23], [24] have significantly improved the performance of semantic segmentation systems. In particular, Most state-of-the-art semantic segmentation models are based on FCN [28], [29]. The detailed object boundary information is usually missing due to the pooling or convolutions with striding operations within the network. To alleviate the problem, one could apply the encoder-decoder structures [33]- [37] to capture the context information in the encoder path and recover high resolution features in the decoder path. Another alternative is to harness the attention mechanism [38]- [40] to explore multi-scale features. Deeplabv3+ [41] adds a simple decoder module to capture local context, refining the segmentation results. PSPNet [42] applies the global average pooling in their Spatial Pyramid Pooling module to collect global context. BiSeNet [43] adds the global pooling on the top of the encoder structure to capture the global context. The works [40], [44], [45] adopt self-attention mechanism to model the relationship of features, which can select the channel maps effectively to refine segment boundaries. Specifically, SPGNet [40] employs the ''superviseandexcite'' framework, where the local features are guided by the semantic supervision. CCNet [45] adaptively captures contextual information on the criss-cross path for each pixel.
15Please refer to [46] for a complete overview on the subject. Although the detection object in our work is similar to semantic segmentation, it should be noted that RSDD inspection faces two challenging factors as aforementioned. Therefore, rather than these sophisticated algorithms, the specified characteristics of track will be completely explored in our method to meet the high inspection performance in the rail inspection field.
III. METHOD
16As there are many different challenges in RSDDs inspection, a robust and discriminative feature representation are required. Since deep neural network have strong representation power of images, we will introduce our deep neural network named as deep extractor (DE) for RSDDs inspection, as follows.
A. BILATERAL FULLY CONVOLUTIONAL NETWORK
17It is generally accepted that the network depth plays a key role in deep neural networks' learning of abstract features [24], [47]. However, two concerns must be taken into account. One is that the specified inspection task prefers a shallow backbone network, considering the inference speed and limited training samples. On the other hand, semantic meaning and detailed information of tiny defects could be trained and encoded automatically, considering the chance of tiny defects appearing in the rail surface. Accordingly, bilateral fully convolutional network (biFCN) containing two components (i.e., inverse fully convolutional network (iFCN) and two branches scheme) is proposed, as illustrated in Figure 2.
1) INVERSE FULLY CONVOLUTIONAL NETWORK
18As mentioned above, defects in rail surface images have various appearances, complicating inspection. Inspired by UNet [48], which has been successfully used for biomedical image segmentation, we propose the iFCN as a novel elegant architecture for RSDD inspection. Like biomedical image analysis, finding defects in rail surfaces also encounters limited training image samples, and the defects also appear with various shapes and sizes. Therefore, the architecture we design should employ a shallow network to avoid the risk of overfitting. On the other hand, it should pay close attention to encoding into the network information related to tiny defects. As shown in Figure 3, iFCN considers upsamplingdownsampling procedure to encode detail information of tiny defects. Generally, it is assumed that the semantics of rail surface images are relatively simple and the structure is relatively fixed. For example, the structure of a rail surface mostly comprises a relatively consistent background, and the semantic information is not particularly rich. Unlike UNet, iFCN's encoder is up-sampled twice, a total of four times. Symmetrically, its decoder is also down-sampled twice to restore the high-level semantic feature map obtained by the encoder to the resolution of the original image. Specifically, the encoder path follows the typical architecture of a convolutional network. It consists of two staked operations, each of which contains a 2 × 2 max pooling with stride 2 for upsampling and the conv block as shown in Figure 4, we will detail the conv block next. Following UNet, at each upsampling step we double the number of feature channels. At the decoder path, every step consists of an downsampling of the feature map followed by 2 × 2 convolution (''downconvolution''), concatenation with the corresponding feature map from the encode path, and the conv block. Note that the skip connection ensures that the final recovery of the feature map integrates more low-level features; it also enables the integration of features of different scales. Another important concern is that the defects in rail surfaces appear in a random or arbitrary manner.
19Further, a reasonable and useful of lightweight network should enhance the feature representation power. Several previous works [49]- [53] have imitated the mechanism of receptive fields in the human visual system to enhance feature representation by lightweight models. The mechanism helps to highlight the importance of the region near to the center and increase insensitivity to small spatial shifts. Inspired by the structure of receptive fields in human visual systems, the conv block used in iFCN is illustrated in Figure 4.
20The inner structure of the conv block can be divided into two components: a multi-branch convolution layer with different kernels and trailing dilated pooling or convolution layers. At each branch, the convolution layer of a particular kernel size is followed by a pooling or convolution layer with a corresponding dilation. The kernel size and dilation have a similar positive functional relation to that of the size and eccentricity of population receptive fields in the visual cortex. Eventually, the feature maps of all the branches are concatenated, merging into a spatial pooling or convolution array. To be specific, first, we employ a bottleneck structure in each branch, consisting of a 1 × 1 conv layer, to decrease the number of channels in the feature map plus an n × n conv layer. Second, we replace the 5 × 5 conv layer with two stacked 3 × 3 conv layers to reduce parameters and deeper non-linear layers. For the same reason, we use a 1 × n plus an n × 1 conv layer to replace the original n × n conv layer. Ultimately, we apply a shortcut design. The basic intention of this atrous convolution layer is to generate feature maps of a higher resolution, capturing information at a larger area with more context while keeping the same number of parameters.
21As we can see, the conv block considers the relationship between the size and eccentricity of the receptive field to enhance feature discrimination and robustness.
2) TWO BRANCHES SCHEME
22As presented in Figure 2, biFCN considers two branches: inverse fully convolutional network (iFCN) and regular fully convolutional network (rFCN). rFCN adopts a regular encoder-decoder procedure to extract high-level meaning from the whole image, while iFCN adopts a decoder-encoder procedure to supplement missed defect information. The output two feature maps are aggregated to obtain a high-level feature map.
23As compared with FCN, biFCN considers another branch with a complementary decoder-encoder procedure. It considers upsampling first, and then downsampling provides supplementary information. As the encode-decode procedure focuses on the background, the decode-encode branch can provide more-refined features of defects. The two branches complement each other: one extracts semantic information at a high level; the other pays more attention to encoding information on tiny defects. The final stage of biFCN is aggregating the output feature maps using element-wise summarization, strengthening the deep features learned from defect information. Therefore, biFCN can facilitate fast and accurate inspection. The final layer uses a 1 × 1 convolution to map the aggregation feature map to the desired number of classes.
B. CRF-RNN
24As already mentioned, CNNs lack smoothness constraints, which can result in ambiguous edge information for defects.
25For segmentation, adjacent pixels that are only slightly different are encouraged to share the same category label. Conversely, if adjacent pixels are largely different, they would likely belong to different classes. CRFs, as probabilistic graphical models, have been developed for the effective enhancement of constraint information in pixel-level labeling tasks. The key idea of CRF inference for semantic labeling is to formulate the label assignment problem as a probabilistic inference problem that incorporates assumptions such as label agreement between similar pixels. Unlike a convolution layer that employs local filters, the CRF looks at every possible pair of pixels in the image, also known as a clique. The CRF is a graphical model, where every clique is defined not only by the spatial distance between pixels but also by their distance in color space. This allows the CRF to produce a segmentation with much sharper edges when compared with only using CNNs.
26In the neural network, the CRFs, which are formulated as a RNN, can provide constraint information for pixels [54]. We assume that x i is the random variable associated with pixel i, which represents the label assigned to the pixel and can take any value from a pre-defined set of labels [0, · · · , l, · · · , L]. In the fully connected pairwise CRF model of [55], the energy of a label assignment x is given by
27where the unary energy components ψ µ (x i ) measure the inverse likelihood (and therefore, the cost) of pixel i taking the label x i , and pairwise energy components ψ p (x i , x j ) measure the cost of assigning labels x i , x j to pixels i, j simultaneously. Note unary energies are obtained from our biFCN, which, roughly speaking, predicts labels for pixels without considering the smoothness and the consistency of the label assignments. The pairwise energies provide an image datadependent smoothing term that encourages assigning similar labels to pixels with similar properties. Pairwise potentials as weighted Gaussians are defined as
28where each k (m) G for m = 1, . . . , M is a Gaussian kernel applied on the feature vectors. The feature vector of pixel i, denoted by f i , contains its spatial location and RGB values. The label compatibility function µ(x i , x j ) captures the compatibility between different pairs of labels.
29Minimizing the above CRF energy E(x) yields the most probable label assignment x for the given image. As this exact minimization is intractable, a mean-field approximation to the CRF distribution is used for approximate maximum posterior marginal inference. Let U i (l) denote the negative of the unary energy ψ µ (x i ): i.e., U i (l) = −ψ µ (x i ). The individual steps of the mean-field algorithm are outlined in Algorithm 1. The main contribution of the CRF-RNN [54] is that mean-field iteration can be reformulated as a stack of CNN layers. Once the individual steps of the algorithm are
Algorithm 1 CRF Mean-Field Approximation
30Z i exp{Q i (l)}; 6: end while broken down as CNN layers, the full algorithm can then be formulated as an RNN.
31While reformulating the steps of the inference algorithm as CNN layers, it is essential to be able to calculate error differentials in each layer with respect to its inputs in order to be able to back-propagate the error differentials to previous layers during training. On one hand, CRF inference is able to refine weak and coarse pixel-level label predictions to produce sharp boundaries and fine-grained segmentations. Therefore, intuitively, CRFs can be used to overcome the drawbacks of utilizing CNNs for pixel-level labeling tasks. On the other hand, importantly, the whole deep networkwhich comprises a traditional CNN and an RNN for CRF inference-can be trained end-to-end using the usual backpropagation algorithm.
C. IMPLEMENTATION DETAILS
32The input images and their corresponding segmentation maps are used to train the network using mini-batch stochastic gradient descent with Nesterov momentum. The energy function is computed by a pixel-wise soft-max over the final feature map combined with the cross entropy loss function. We train the network with a momentum of 0.9, a weight decay of 0.0005, and mini-batches of size 16. Due to the small dataset, we initialize the learning rate as 0.0001 and run the stochastic gradient descent algorithm, but reduce the learning rate by a factor of 0.1. Note that defect inspection is essentially a two-category classification problem such that each soft-max layer outputs a two-dimensional feature map. The complete architecture is implemented and trained end-to-end in PyTorch.
33In deep networks with many convolutional layers and different paths through the network, a good initialization of the weights is extremely important. Otherwise, parts of the network might give excessive activations, while other parts never contribute. Ideally, the initial weights should be adapted such that each feature map in the network has approximately unit variance. Following UNet [48], the initialization of convolution layers can be achieved by drawing the initial weights from a Gaussian distribution with a standard deviation of √ 2/N , where N denotes the number of incoming nodes of one neuron [56].
34For the current task very few training data are available. Therefore, we use excessive data augmentation by applying elastic deformations to the available training images.
35This allows the network to learn invariance to such deformations, without the need to see these transformations in the annotated image corpus. Random elastic deformations of the training samples seem especially to be the key concept to train a segmentation network with very few annotated images. We generate smooth deformations using random displacement vectors on a coarse 3 × 3 grid. The displacements are sampled from a Gaussian distribution with 10 pixels standard deviation. Per-pixel displacements are then computed using bicubic interpolation. Drop-out layers at the end of the contracting path perform further implicit data augmentation.
36Although our architecture consists of biFCN and CRF-RNN, the parameters are able to be updated end-to-end. For training, we fine-tune the two parts separately for each due to the small number of training samples. In particular, we freeze CRF-RNN, and tune the biFCN, ensuring that the convergence is fast so as to reduce the risk of over-fitting. After training the biFCN architecture, we freeze it by further training the CRF-RNN. Note that the mean-field iterative algorithm for dense CRF converges in less than 10 iterations. In practice, we train CRF-RNN in about five iterations. This kind of processing makes the architecture straightforward, and ensures it is efficiently trained and tested.
IV. EXPERIMENTAL RESULTS AND ANALYSIS
37This section details the experimental setup and reports the performance of the proposed method.
A. EXPERIMENTAL SETUP
38To evaluate the performance of our method for RSDD inspection, we implemented the proposed method in Pytorch and tested it on two publicly available datasets. 1 The first is the Type-I RSDD dataset, comprising 67 images of express rails. The second, the Type-II RSDD dataset, contains 128 images of common/heavy haul rails. Note that each image from both datasets contains at least one defect and has a dynamic background with much noise. Example images from both datasets are shown in Figure 5. A random selection of 80% of the images in each dataset was used for training the proposed method; the remaining images formed the testing set for performance assessment. As noted above, random elastic deformations of the training samples augmented the dataset, similar to the way UNet handled the same problem of limited training samples for biomedical image segmentation. All experiments were repeated five times under a constant ratio of training to testing data, and the average inspection performances are reported. To quantitatively evaluate the proposed DE method, we adopted the criteria of Precision (Pre), Recall (Rec), and F-measure (F), which are widely used in pattern recognition and information retrieval [57]. Two further evaluation indices that consider different perspectives (i.e., pixel-level and defect-level) were also adopted to complete the evaluation of DE for RSDD inspection.
39where TP denotes the number of correctly detected defect points, FP is the number of points falsely declared to be defects, and FN is the number of undetected defect points. Precision and Recall are inversely related; i.e., it is possible to increase one at the cost of reducing the other. Hence, F-measure is introduced, a greater value of which indicates the more the detection result is consistent with human judgment. Note that the following reported Pre, Rec, and F values are averages for the whole dataset. Defect-level index. Pre , Rec , and F are defined as
40where TP is as above, TP is the number of correctly detected defects mapping to the ground truth, P refers to the total number of detected defects, and N refers to the total number of labeled defects in the ground truth. At this level, a detected defect is regarded as correct if it overlaps a labeled defect in the corresponding image more than 80%; otherwise, it is wrong. Note that the counted numbers in Pre and Rec are for the whole dataset.
B. ABLATION STUDY
41To verify the effectiveness of biFCN and CRF-RNN, we conduct ablation study using the collected dataset. These comparative methods are FCN and biFCN (i.e., both methods without post-process strategy of CRF). In addition, we also use FCN models equipped with post-process strategy of CRF strategy for comparison. In order to be clarity, we named the comparative method as FCN+CRF-RNN. The parameters of these comparative methods were learnt under the same experimental setup of our method. As shown in Table 1, the F-measures of the proposed model is much higher than that of the FCN model, which achieves the best performance of these baseline methods. Note that biFCN shows better performance than FCN in both RSDD datasets, indicating that the advantages of bilateral fully convolutional network strategy. The comparison of biFCN+CRF-RNN and biFCN (or FCN and FCN+CRF-RNN) verifies the effectiveness of post-process strategy of CRF strategy. Interestingly, it is also found that the improvements of bilateral fully convolutional network strategy is higher than that of CRF-RNN. This result demonstrates biFCN that is capable of extracting high-level meaning and encoding varied information about defects is quite effective.
C. TYPE-I RSDD DATASET
42We compare the inspection performance of the DE method with four well-established methods, LN+DLBP, method in [19], CFE [17] and BODI [20]. Their parameters are set as the default values. Specifically, the upper bound of defect proportion dp is set to 0.3 in LN+DLNP; the gradient threshold k and control parameter C in [19] is set as k = 10 and C = 5, respectively. Note that the threshold T is an important parameter for CFE and BODI methods. It is set as 53 for CFE and 3.2 for BODI, values that give a good balance between Precision and Recall in each case. Figure 6 visualizes some selected defects in the Type-I RSDD dataset and the corresponding inspection results for the different methods.
43Only defect parts of the rail surface images are shown for convenience of display. These comparative methods have good inspection results when the defects are universal and the background consistent. CFE and BODI methods pose this problem in an alternative way to explore the characteristics of the background and focus on background modeling rather than defect contrast enhancement [3], [18], [19] to achieve promising performances. BODI showed some false negatives and false positives for rails with varying appearance, because the modeled background determined by a random selective strategy was not optimal. The comparison results show that our DE method obtained the best matched contour with the ground truth, without false positives or false negatives. Table 2 lists results for two types of performance evaluation index. It is worth mentioning that LN+DLBP adopts projection algorithm to locate defects by bounding boxes, and method in [19] detects contours to locate possible defects. Therefore, pixel-level index is not suitable for the two methods. It is shown that BODI was inferior to CFE in terms of inspection performance. This was because the background modes obtained by the mean shift algorithm in CFE achieved better representation power than the random selective strategy of BODI. Generally, CFE and BODI had low Pre and Pre for backgrounds with largely varying gray-level distributions, because of low-level feature representation. The listed F-measures (F and F ) of the DE method are around 3% and 2% higher, respectively, than those of the baseline methods. Our method performed much better than the comparaitve methods in terms of pixel-level index and defectlevel index, verifying its effectiveness and illustrating its promising ability for this kind of fault inspection task.
D. TYPE-II RSDD DATASET
44The five methods' inspection performances are next compared for the type-II RSDD dataset. The four baseline methods used default parameter values, and the threshold parameter T was set to 74 and 4.1 for CFE and BODI, respectively, giving a good balance between Precision and Recall. The upper bound of defect proportion dp is set to 0.3 in LN+DLNP; the gradient threshold k and control parameter C in [19] is set as k = 4 and C = 5, respectively. It is worth mentioning that the learned parameters of our method are also applicable to this data set. Figure 7 displays the methods' results. As expected, all methods showed competitive performance for defects that share universal characteristics. In comparison to the Type-I dataset, the Type-II dataset had a more consistent background, but more complex defects involving various appearances within each defect and differing characteristics shared among the defects. Thus, method in [19] performs poor in such various defects, and is not able to find its accurate contours. Besides, LN+DLBP is also not successful in such various defects, and locates with bias. Both CFE and BODI performed poorly for complex defects. Therefore, the performance improvement of our method was particularly pronounced for such varied and small defects, because our method can effectively capture their representative patterns and structures.
45The evaluation indexes in Table 3 further evaluate DE through comparison with the other methods. LN+DLBP and method in [19] are also only evaluated by defect-level index. Method in [19] performs worse than other methods, due to the various appearances of defects as aforementioned. As expected, BODI performed worse than CFE due to the obtained background modes, as previously mentioned. The DE method outperformed these baseline methods in terms of pixel-level index and defect-level index. Its F-measures (F and F ) were around 1% and 2% higher, respectively, than those of the baseline methods. This comparison of DE with established methods further verifies that deep learning is an attractive basis for strategies to detect defects of varying appearance due to its representation power.
E. PRACTICAL TEST
46In order to further estimate the performance of the proposed method, we evaluate it on an actual rail line. This line covers 18 km of 18125 continuous rail images. Note that the rail line is common/heavy haul rails, so that the parameters settings of these comparative methods are the same as those in Type-II RSDDs dataset. Note that defects in the rail line are not visually labeled by expert, due to its working burden. Therefore, the quantitatively evaluation is achieved by false inspection, missing inspection and correct inspection. Follow [20], BODI initialize its background model one time and continue to update it image by image until all the images of this rail line is down. Table 4 summarizes the comparison inspection results of these five comparative methods. It is found that LN+DLBP has low false inspection, but it misses some true defects, which can cause potential risk in rail daily working. As expected, method in [19] have inferior performance in terms of false inspection. From the results, it is clear that the proposed method detects all defects successfully, and achieves the best performance of these baseline methods in terms of inspection rate. Further, DE is much superior to these comparative methods in terms of False detection. This result demonstrates its powerful in RSDDs inspection, and also verifies that the deep learning based method is somewhat robust.
F. DISCUSSION
47From the perspective of its backbone architecture, our DE method is related to the UNet model [48] for biomedical image segmentation. Here, we elaborate on the differences between them. Note that the semantics of rail surface images are relatively simple and the structure is relatively fixed, so that a shallow architecture is preferable for this specific inspection task. In contrast, our network, which benefits from a defined conv block rather than an individual conv layer, can achieve augmented representation power and improved discrimination between true defects and noise points. The DE also adopts a novel elegant biFCN architecture that pays increased attention to encoding information about tiny defects into the network.
48To further demonstrate the advantages of the DE method, it is next compared with the closely relevant UNet method for the specified inspection task. To achieve a fair comparison, UNet's encoder was down-sampled twice, and the method used in the comparison was called tiny-UNet; it also followed the module of CRF-RNN. To further demonstrate the advantages of the proposed method, we also compare it with some state-of-art semantic segmentation network, CCNet [45] and SPGNet [40]. Criss-cross attention module in CCNet is applied to obtain dense contextual information of all the pixels on its criss-cross path, which can be leveraged to capture contextual information from full-image dependencies in a more efficient and effective way. Semantic prediction guidance module in SPGNet learns to re-weight the local features through the guidance from pixel-wise semantic prediction. The Guided Attention maps within the SPG module allows network to visually interpret the corresponding reweighting mechanism. In order to achieve fair comparison, both the criss-cross attention module and semantic prediction guidance module are embedded into the middle of tiny-UNet. Note these methods are trained under the same experimental setup. Figure 8 depicts some example defects taken from both common and express rails and the corresponding inspection results for the four methods. Tiny-UNet, CCNet and SPGNet missed some tiny defects, and the results show that DE performed better, achieving fewer false negatives and false positives. Our method shows an improved, or comparable performance compared with tiny-Unet, CCNet and SPGNet. These results indicate that DE is less sensitive to tiny defects, because the designed architecture containing encode-decode and decode-encode branches can extract semantic information at a high level and also pay more attention to encoding information on tiny defects. Table 5 compares inspection results for DE, tiny-UNet, CCNet and SPGNet on the two datasets. As expected, DE outperformed the three other methods in terms of pixel-level index and defect-level index. The results demonstrate that DE is more suitable for the specified inspection task.
V. CONCLUSION
49This paper presents a novel DE method for RSDD inspection. In contrast to previous works on RSDD inspection that focused on limited low-level features, here we apply deep learning for the reliable labeling of each pixel. Our approach therefore poses this problem in an alternative way to transform it into an image segmentation problem. The DE combines the strengths of the proposed bilateral fully convolutional networks and CRFs. It is capable of extracting high-level meaning and encoding varied information about defects. In particular, the proposed framework can be trained end-to-end. Our method achieves a new state-of-the-art on the Type-I and Type-II RSDD datasets. This improvement is attributable to the combination of the strengths of biFCN and CRFs in a single deep network. Although the developed method is designed for rail inspection, it can be easily extended to the identification of faults in other industrial products.
50Our future research will extend our work in the following aspects. We will investigate more elegant networks that learn to iteratively improve the input unary potentials to make them closer to the ground truth. We will also develop multiple sources of data types to increase the inspection accuracy.
참고문헌 60건
- Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification 2015 10.1109/iccv.2015.123
- Very Deep Convolutional Networks for Large-Scale Image Recognition Computer Vision and Pattern Recognition · 2014
- Rail corrugation detection by Gabor filtering 2002 10.1109/icip.2001.958571
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Semantic Image Segmentation with Deep Convolutional Nets and Fully Connected CRFs arXiv (Cornell University) · Cornell University · 2014 10.48550/arxiv.1412.7062
- Visual recognition of fastening bolts for railroad maintenance Pattern Recognition Letters · Elsevier BV · 2004 10.1016/j.patrec.2004.01.008
- A new laser displacement sensor based on triangulation for gauge real-time measurement Optics & Laser Technology · Elsevier BV · 2007 10.1016/j.optlastec.2007.04.009
- Saliency-Based Defect Detection in Industrial Images by Using Phase Spectrum IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2014 10.1109/tii.2014.2359416
- A Novel and Effective Surface Flaw Inspection Instrument for Large-Aperture Optical Elements IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2015 10.1109/tim.2015.2415092
- A Visual Detection System for Rail Surface Defects IEEE Transactions on Systems Man and Cybernetics Part C (Applications and Reviews) · Institute of Electrical and Electronics Engineers · 2012 10.1109/tsmcc.2012.2198814
- An Effective Defect Inspection Method for LCD Using Active Contour Model IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2013 10.1109/tim.2013.2258242
- Automatic Fastener Classification and Defect Detection in Vision-Based Railway Inspection Systems IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2013 10.1109/tim.2013.2283741
- Railway Fastener Inspection by Real-Time Machine Vision IEEE Transactions on Systems Man and Cybernetics Systems · Institute of Electrical and Electronics Engineers · 2015 10.1109/tsmc.2014.2388435
- A Real-Time Visual Inspection System for Discrete Surface Defects of Rail Heads IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2012 10.1109/tim.2012.2184959
- Defect Detection in Solar Modules Using ICA Basis Images IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2012 10.1109/tii.2012.2209663
- Multiscale conditional random fields for image labeling 2004 10.1109/cvpr.2004.1315232
- Going deeper with convolutions 2015 10.1109/cvpr.2015.7298594
- Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation 2014 10.1109/cvpr.2014.81
- Greedy Layer-Wise Training of Deep Networks Advances in neural information processing systems · 2007 10.7551/mitpress/7503.003.0024
- A Real-Time Visual Inspection System for Railway Maintenance: Automatic Hexagonal-Headed Bolts Detection IEEE Transactions on Systems Man and Cybernetics Part C (Applications and Reviews) · Institute of Electrical and Electronics Engineers · 2007 10.1109/tsmcc.2007.893278
- Conditional Random Fields as Recurrent Neural Networks 2015 10.1109/iccv.2015.179
- The Role of Context for Object Detection and Semantic Segmentation in the Wild 2014 10.1109/cvpr.2014.119
- A Fast Learning Algorithm for Deep Belief Nets Neural Computation · The MIT Press · 2006 10.1162/neco.2006.18.7.1527
- An introduction to ROC analysis Pattern Recognition Letters · Elsevier BV · 2005 10.1016/j.patrec.2005.10.010
- Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials arXiv (Cornell University) · Cornell University · 2012 10.48550/arxiv.1210.5644
- ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
- Rethinking the Inception Architecture for Computer Vision 2016 10.1109/cvpr.2016.308
- A robust vision inspection system for detecting surface defects of film capacitors Signal Processing · Elsevier BV · 2015 10.1016/j.sigpro.2015.10.028
- Automated Visual Inspection System for Bogie Block Key Under Complex Freight Train Environment IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2015 10.1109/tim.2015.2479101
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- Surface defect detection for high-speed rails using an inverse P-M diffusion model Sensor Review · Emerald Publishing Limited · 2016 10.1108/sr-03-2015-0039
- Fully Convolutional Networks for Semantic Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2572683
- A Machine Vision Apparatus and Method for Can-End Inspection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2016 10.1109/tim.2016.2566442
- Associative hierarchical CRFs for object class image segmentation 2009 10.1109/iccv.2009.5459248
- Greedy Layer-Wise Training of Deep Networks 2007
- Full-Resolution Residual Networks for Semantic Segmentation in Street Scenes 2017 10.1109/cvpr.2017.353
- Pyramid Scene Parsing Network 2017 10.1109/cvpr.2017.660
- Deformable Convolutional Networks 2017 10.1109/iccv.2017.89
- Faster R-CNN: towards real-time object detection with region proposal networks Neural Information Processing Systems · 2015
- Rethinking Atrous Convolution for Semantic Image Segmentation arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1706.05587
- Gated Feedback Refinement Network for Dense Image Labeling 2017 10.1109/cvpr.2017.518
- A Hierarchical Extractor-Based Visual Rail Surface Inspection System IEEE Sensors Journal · IEEE Sensors Council · 2017 10.1109/jsen.2017.2761858
- Context Contrasted Feature and Gated Multi-scale Aggregation for Scene Segmentation 2018 10.1109/cvpr.2018.00254
- Online Rail Surface Inspection Utilizing Spatial Consistency and Continuity IEEE Transactions on Systems Man and Cybernetics Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tsmc.2018.2827937
- BiSeNet: Bilateral Segmentation Network for Real-Time Semantic Segmentation Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01261-8_20
- Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials arXiv (Cornell University) · Cornell University · 2012
- Geometry-Aware Distillation for Indoor Semantic Segmentation 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00298
- Recurrent Scene Parsing with Perspective Understanding in the Loop 2018 10.1109/cvpr.2018.00106
- Attention to Scale: Scale-Aware Semantic Image Segmentation 2016 10.1109/cvpr.2016.396
- Receptive Field Block Net for Accurate and Fast Object Detection Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01252-6_24
- Stacked Deconvolutional Network for Semantic Segmentation IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2019 10.1109/tip.2019.2895460
- SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2016.2644615
- Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_49
- Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2017 10.1609/aaai.v31i1.11231
- Understanding Deep Learning Techniques for Image Segmentation ACM Computing Surveys · Association for Computing Machinery · 2019 10.1145/3329784
- CCNet: Criss-Cross Attention for Semantic Segmentation 2019 10.1109/iccv.2019.00069
- Composite real-time image processing for railways track profile measurement IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2000 10.1109/19.850395
- SPGNet: Semantic Prediction Guidance for Scene Parsing 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2019 10.1109/iccv.2019.00532
- Filter-based feature selection for rail defect detection Machine Vision and Applications · Springer Science+Business Media · 2004 10.1007/s00138-004-0148-3
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2577031