Abstract

Radiography is one of the most used techniques in weld defect inspection. Weld defect detection becomes a complex task when uneven illumination and low contrast characterize radiographic images. In this paper we propose a new active contour based level set method for weld defect detection in radiography images. An off-center saliency map exploited as a feature to represent image pixels is embedded into a region energy minimization function to guide the level set active contour to defects boundaries. The aim behind using salient feature is that a small defect can frequently attract attention of human eyes which permits enhancing defects in low contrasted image. Experiment results on different weld radiographic images with various kinds of defects show robustness and good performance of the proposed approach comparing with other segmentation methods.

1. Introduction

Nondestructive testing (NDT) is widely used in many fields, principally for serious applications where malfunction can be catastrophic such as welds of pressure vessels, aircraft, and power plants. One of the most famous techniques used in weld inspection is radiography which is based on the transmission of X-rays or gamma rays through an object to generate a radiological image on a photographic plate (Figure 1). Unfortunately, the traditional interpretation of radiography images by artificial methods is subjective, time-consuming, and easy to cause fatigue, in order to improve the automation level and avoid drawbacks of manual interpretation; it is desirable to develop some forms of computer-aided systems to assist the human interpreter in evaluating the quality of welded joints. In general, this system of automatic inspection should have the following stages [1, 2]; after digital image acquisition only a region of interest (ROI) is further processed, some preprocessing may take place like noise reduction and contrast enhancement and then segmentation of regions that may represent defects is done; as soon as the defects are segmented features can be extracted and then given as input to classifiers to detect possible defects and eventually to identify the exact defect type. Moreover the defect dimensions are compared to some acceptance criteria defined by experts or international standards and a decision is taken on the acceptability of the monitored weld.

As shown in Figure 2, weld radiography image contains two main parts: the base metal part and the weld seam part. The weld region is brighter than the weld area. Defects are randomly found at the weld area with different small shapes: circular and rectangular. Weld flaws can be categorized in various types like incomplete penetration, slag line, slag inclusion, cracks, undercuts, porosity, and wormholes. Porosity or gas cavity has rounded contours and dark shadows, cracks are fine line straight or wandering in direction, slag are line more or less interrupted parallel to the edges of weld. Radiography images are characterized by a low contrast between defects and background (weld) and small defects with blurred and unsharpened edges. Moreover, uneven illumination is frequently found in radiography images which is a nonuniform light distributed generally at the middle of weld area. For weld inspectors, these factors make defect localisation and segmentation with conventional segmentation methods a complicated mission. To overcome these difficulties and to facilitate human weld inspection, we propose in this paper an image segmentation method for radiography weld defect extraction.

In literature many radiography weld defect detection methods are proposed [3]. We find local and global thresholding approaches [4], texture analysis based methods [5], watershed [6], artificial neural network [7, 8], and active contours [9]. Segmentation with deformable models or active contours seems to be quite suitable for radiographic images to extract defects because of many reasons, principally the ability of integration of various image properties such as edge and region information with minimisation methods and curve theory. Several research works have been explored and many active contour models are proposed. In general active contour models can be categorized into two different classes: edge and region based models. Edge based models [10, 11] uses the edge information like image gradient to drive the active contour toward the object boundaries and to stop it there; these kinds of models are sensitive to noise and to initial active contour position which should be initialized near object boundaries. Moreover, the boundary leakage problem at weak edges is a major drawback of edge based models since they rely much on the gradient value. Compared with edge based models, region based models depend on statistical information inside and outside of regions delimited by the contour; thus they are less sensitive to the noise and to poor edges. Moreover, they are less dependent to the initialization since they exploit the global region information of the image statistics.

One of the most popular region based approaches is the Chan and Vese model well known as C-V [12]. C-V model energy function is a simplification of Mumford Shah formulation [13]. It has been successfully applied in many applications for images with two regions; this model is less sensitive to image noise and contour initialization which can be located everywhere in the image. However, the major weakness of C-V model is the segmentation of images with intensity inhomogeneities where pixels of the same object have a nonuniform gray level intensity distribution. To resolve this problem, active contours with localized energy functions have been proposed. The idea is to compute statistical information only in a local window in the pixel neighbourhood. One of the famous local region based active contours is proposed by Wang et al. [14, 15] called the local binary fitting (LBF) model. In this method two fitting energies are used to calculate LBF energy function that approximates the local image intensities means inside and outside of the contour using a Gaussian kernel. The LBF model solved the problem caused by intensity inhomogeneity. However, this model is sensitive to initial contour location and it increases greatly the computational complexity. Zhang et al. [16] proposed a selective local global level set active contour known as IVC model which introduces a new region signed pressure force (SPF) function. Zhang model uses a Gaussian smoothing kernel to regularize the level set function which decreases significantly the computation time. The main advantage of this model is the ability to select local or global segmentation so the user can choose to segment one object or the whole image. Nevertheless, experiments show that this model is very sensitive to nonuniform illumination and to low contrasted images like radiography images. Zhang et al. [17] proposed also a region local level set active contour where a local image fitting (LIF) energy function is used to guide the level set active contour to object boundaries based on local statistical information of the image. LIF energy function determines differences between the fitted image in the LBF model and the original image. In addition, a filtering method with a Gaussian kernel is applied to regularize level set function iteratively. LIF active contour model is well consuming computation time besides it is very sensitive to the local window sizes which should be adjusted carefully: choosing a small window size around pixel permits detection of small objects but increases sensitivity to noise. Song and Yan [18] proposed a local level set active contour to segment small defects found in hot rolled steel coloured images. The main idea is to fuse an image feature called the saliency map in the active contour energy formulation. This approach shows high performance in segmentation of defects with small regions particularly with rounded shapes in coloured images. Nevertheless, the saliency map used is adapted to coloured images so three information channels are needed. Much information might be missed when using images with one channel like radiography images. Moreover, Song model uses a Gaussian filter in the computation of the saliency map which is not suitable for images with low contrast images. In the other side, this approach is a level set local based model which increases the computation time considerably; besides segmentation accuracy depends greatly to the level set local window sizes.

In this work we propose a new global level set active contour to segment weld defects in radiography images. An image feature called the off-center saliency map computed with integral images is embedded in the energy formulation of a global region level set active contour. The remainder of this paper is organized as follows: the proposed method is presented in Section 2, tests and experimental results are depicted in Section 3, and we finish the paper by a conclusion in Section 4.

2. Proposed Level Set Active Contour Model

In this section we present the modified level set active contour. We show the off-center saliency map extraction method in the first part and the new level set active contour energy formulation after fusion with the extracted saliency map feature is illustrated in the second part.

2.1. Off-Center Saliency Map Computation

Systems that mimic the biological attention system are widely developed to extract the saliency map which aims to select the interesting parts of the sensory input data in order to reduce the vast amount of information that a computer vision system normally needs to process. In this area two types of retinal ganglion cells are defined: “on-center” and “off-center.” An on-center cell is stimulated when the center of its receptive field is exposed to light and is inhibited when the surround is exposed to light; off-center cells have just the opposite reaction. Two image features that imitate the behavior of the two cells are computed and known as on-center and off-center saliency maps. In weld radiography images, defects correspond to dark regions surrounded by brighten background; therefore, we decide to use the off-center saliency map as an image feature to guide the level set active contour to defect boundaries. Off-center saliency map is calculated using center-surround difference. Many approaches are used to achieve computation; we find Gabor filters [19], difference of Gaussian filters [20], and spectral residual [21]. Recently, Montabone and Soto [22] present a fast method to compute center-surround differences with rectangular filters based on the concept of integral images (or summed area tables) introduced first by Viola and Jones [23]; this approach allows speeding up the calculations considerably and preserving objects borders. This approach is used in our work. The off-center saliency submaps are calculated by a difference center and surround with this relation:where “” represents the surround size chosen empirically for our application as and represents the gray level pixel at the surround middle .

The surround is calculated in a fast time using integral image of the image :

The surround is the local average in neighbourhood window size “”:

The computed off-center saliency submaps are summed pixel by pixel in a one map as follows:

is the off-center saliency map which will be used in a further step with the level set active contour. The advantage of the feature in defect enhancement is demonstrated by an example on radiographic weld image in Figure 3. As shown the weld radiography image has a low level contrast and a background affected by uneven illumination; defects and background are not easily distinguishable; therefore, defect extraction is very difficult. Figure 3(b) shows the off-center saliency map , as we can see the difference between the defects and the background is highly enhanced; the surface plot of shown in Figure 3(c) shows also how defects gray level are well amplified.

2.2. Level Set Active Contour Energy Formulation

The off-center saliency map obtained in the previous section is used as statistical information representing pixels in the image. The feature image is embedded in the formulation of a level set active contour using a global Gaussian distribution fitting energy. The aim is to segment image into two regions, defect and background , , with a contour “” separating these two regions depending on statistical information inside and outside of the off-center saliency map . The segmentation is achieved with energy minimization [19]. We define an energy function to the contour “” composed of three terms: the salient energy , the regularization energy , and the reinitialization energy:

The first term attracts the contour “” to defect edges. We choose to minimize the Bayes error [24] defined as follows:where , are the regions inside and outside the contour . , are two probability density functions (PDF). is the off-center saliency map.

Based on the level set theory [16], the contour is embedded as the zero level of a level set function :

Thus (6) becomes where is the image domain and is the Heaviside function.

, are two probability density functions assumed as a Gaussian distribution with means , and variances , Consider

Therefore (8) can be written as

Means , and variances , of , respectively, inside and outside the contour “” can be calculated as follows:

is a regularization energy added to keep a smooth contour of the segmented region so we should minimize the length of the contour which can be calculated by the following relation:

When evolving level set function, usually it may be too steep or flat so we add a third energy term to reinitialize the level set function and to maintain the signed distance property. We use a distance regularized level set evolution (DRLSE) proposed by Wang et al. [24]:where is called a double well potential function defined by

As a result, the total energy function can be written as

We have added , , as controlling parameters. We note that the parameter controls the signed distance property of the level set function and the parameter governs its smoothness. The parameter permits attracting the level set function to defect regions.

Now we keep all the variables fixed except for ; minimization of the total energy with respect to is equivalent to solving the gradient descent flow equation:

We obtain the following evolution equation:

is the Dirac function. , , are defined as follows:

The level set evolution equation (17) is composed of 3 terms; the first term in the right side allows keeping the regularity of the level set function, the second term preserves a smooth contour, and the third term segments the image into defect and background.

Using a simple finite difference explicit scheme to (17) we obtain the discrete level set formulation as follows:where , are the index iteration number and time step, respectively.

The main stages of the proposed scheme for segmenting defects can be summarized as follows.

Step 1. Input image.

Step 2. Select a region of interest (ROI).

Step 3. Initialize parameters , , , , .

Step 4. Compute off-center saliency map .

Step 5. Compute the initial level set mask .

Step 6. For a fixed number of iterations .Compute average and variance , , , .Update level set function with (19).

Step 7. Keep the zero level of the function .

3. Experimental Results

In this section the proposed level set active contour model is tested and evaluated on a set of radiography images of weld joints obtained from Federal institute of Material Research and Testing (Bam) [25]. The radiograph films have been scanned with the scanner LS85 SDR from Lumisys, mostly in high density mode. The original 12-bit data depth was rescaled to 8 bits with a linear LUT proportional to optical film density by visual adjustment to the image content. The pixel size is 40.3 micron (630 dpi), and the images are 8-bit gray values. Due to the big size of radiography weld images, the nonuniform illumination, and the small defect shape, it is difficult to detect the presence of small defects and determine accurately their sizes during the radiogram visualization. Consequently, for the seeking of simplifying the task, one could begin by selecting the region of interest, ROI, which can be considered as the parts of the image where the radiograph interpreters suspect the presence of imperfections. The selection of the ROI prevents the operator to make treatments on the irrelevant regions of the image. Moreover, it allows reducing the computing time for real-time applications noting that the technique of ROI localization is commonly used by researchers in several works. After the selection of an ROI region, the obtained images are resized to .

We present in Figures 4 and 5 the main steps of the proposed segmentation algorithm on two weld radiography examples. First row corresponds to the whole weld radiogram then a region of interest (ROI) is selected. Next images in Figures 4(b) and 5(b) show the selected region to process including various defects like porosities and slags distributed at the weld middle. The off-center saliency map is shown in the next Figures 4(c) and 5(c), as we can see defects are enhanced and the background is suppressed. Figures 4(d) and 5(d) depict the defect contour detection with a blue and red colour obtained with the proposed off-center saliency level set active contour. Even though the low contrast and the nonuniform illumination, we can see that the most parts of defects are segmented with low false detections. We note that parameters of the proposed method are set as , , , , and .

3.1. Comparative Test 1

We show a comparison between the proposed model and a level set active contour depending only on gray level image intensity proposed by Zhang et al. [17] and called the local image fitting active contour LIF. LIF model Matlab implementation is given in author’s website (http://kaihuazhang.net/J_papers/PR_10.rar). Figure 6(b) presents results of the local fitting model LIF and the results of the proposed active contour model are shown in Figure 6(c). Parameters of the proposed algorithm are fixed as , , , , and .

Through a visual evaluation, the superiority of the proposed level set active contour can be verified. Local fitting active contour LIF [17] fails to obtain satisfactory results due to the influence of the clutter in the background and the low contrast of defects. Much false detection and a lot of defects are not detected. The best results are obtained with the proposed level set active contour. The most parts of defects are identified with low false detections. A quantitative comparison between the proposed active contour and LIF method is shown in the Table 1. We compute a segmentation evaluation measure used by many researchers called the -measure [26]. To compute this evaluation criterion we need ideal image segmentation and the proposed segmentation results; the two results should be given in binary masks. Note that ground truth or ideal segmentations used are obtained from expert visual interpretation. We note also that a higher value (max 1) denotes accurate segmentation. The detection rates are shown in Table 1 which demonstrates the high performance of our method comparing with LIF approach. Moreover, the computation time (cpu-time) is computed for two methods. The step time algorithm is fixed to 0.1 for the two methods. Algorithms are implemented on Matlab R2010a (on a PC Core i5 2.9 GHz). Obtained values show that our proposed model is very fast compared with local active contour LIF.

3.2. Comparative Test 2

We show in this paragraph a comparative test between the proposed method and saliency convex active contour model proposed by Song and Yan [18] known as SCACM. Images in Figure 7(a) corresponds to regions of interest (ROI) selected from different weld radiogram films containing various kinds of defects like porosities and horizontal and vertical thin cracks. Figure 7(b) presents SCACM method detection results and Figure 7(c) shows the segmentation results with the proposed method.

Obtained results in Figure 7 show that Song method detects only defects with small and round shapes due to the influence of the local window size used in this method. In the other side, our method does not need to use a local window as is explained before; we use a global Gaussian distribution approximation of the off-center saliency intensities. The proposed method detects defects with various forms and sizes with low false detections. Most parts of defects are extracted despite their low contrasts. Using Song method many low contrasted defects are missed and not identified. As in previous experiment, the convergence time of two methods evaluated in Table 2 shows that proposed model achieves defect segmentation in a fast time comparing with Song method. We choose parameters of the proposed algorithm as , , , and . We note also that we have used the Matlab implementation given by SCACM authors in their website (http://faculty.neu.edu.cn/yunhyan/Webpage%20for%20article/SCACM/DemoSCACM.rar).

4. Conclusion

Detection of small defects in low contrasted radiography images corrupted with uneven illumination is very complicated. Usually proposed methods in this area have limited results. In this work our aim is to improve robustness of weld defect segmentation in radiography images in order to obtain satisfactory results. We have developed a new method based on level set active contour guided with an off-center saliency map. The segmentation is achieved when an energy function is minimized. Different tests on weld radiography images with various kinds of defects prove efficiency and robustness of the proposed method. A comparison test is shown with two kinds of level set active contour models. The first depends only on gray level intensity and the second uses a saliency map to derive the segmentation active contour. The comparison tests reveal that the proposed method permits overcoming the problem of nonuniform illumination and the low contrast level in radiography weld images. Moreover, our method shows a fast convergence time comparing with other methods. However, some weakness of the proposed method must be studied in a future work. To reduce human interaction, it is recommended to develop a method to select automatically the region of the interest. It is also interesting to validate this segmentation method to another radiography image application like medical area.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.