- Research Article
- Open Access
On the Evaluation of Texture and Color Features for Nondestructive Corrosion Detection
EURASIP Journal on Advances in Signal Processing volume 2010, Article number: 817473 (2010)
We present a methodology for automatic corrosion detection in digital images of carbon steel storage tanks and pipelines from a petroleum refinery. The database consists of optical digital images taken from equipments exposed to marine atmosphere during their operational life. This new approach focuses on color and texture descriptors to accomplish corroded and noncorroded surface area discrimination. The performance of the proposed corrosion descriptors is evaluated by using Fisher linear discriminant analysis (FLDA). This approach presents two main advantages: No refinery stoppages are required and potential-related catastrophes can be prevented.
Corrosion is the destructive attack of a metal by chemical or electrochemical reaction with its environment . The exposure of metallic surfaces structures to rust degradation during their operational life is a known problem and it affects storage tanks, steel bridges, pipelines, and ships .
Storage tanks and pipelines are commonly made of carbon steel and low alloy steel not resistant to corrosion in natural environments. Corrosion resistant paints and coatings are used in almost all applications. Despite of this protection, some steels will rust quite rapidly in humid air even though condensation is not evident .
Atmospheric corrosion causes economic losses usually due to production interruptions, replacement of expensive materials, and contamination of products. A good deal of attention should be paid to safety risks and the environment pollution due to corrosion . Therefore, corrosion monitoring is a relevant task to detect corroded regions before failures occur by using inspection methods, so that appropriate decision-making can be taken to avoid any untoward incidents.
There are different corrosion analysis methods as mechanical measurements, chemical analysis, and visual inspection by experts. Inspection usually refers to evaluation of attributes in relation to a specification. For economical and security reasons, the petroleum and gas industry requires nonintrusive or nondestructive measurement techniques to avoid disturbing their properties and performance .
Visual inspection of metallic surface is a common practice employed to identify and detect sources of failures. A tough problem associated with this task is its tedious and subjective nature. Significant refinement can be achieved if specialists have access to automatic computerized inspection methods.
In many materials, the corrosion process produces a typical rough surface. Therefore, texture analysis is highly recommended to discriminate specific surface roughness. Texture is defined as repetition of a pattern over a region as a set of small variations, generally described by a spatial function . Another issue is the random aspect of texture, because size, shape, and orientation of pattern elements can vary over a region.
The potentiality of image processing techniques for automatic rust steel detection is investigated in . The methodology introduced an iterative multivariate data analysis to examine the effects of rust steel descriptors, that is, texture and color distribution on a set of classifier algorithms. In this analysis, a selector of classifiers indicates the algorithm that provides good classification results (high sensitivity) and acceptable time response for the automation of the system .
In 1981, Itzhak et al.  employed computer image processing techniques for statistical evaluation of pitting corrosion in a plate of AISI 304L stainless steel exposed to a corrosive water solution containing 10% . The purpose of this work was to introduce and to evaluate new tools for analyzing the effects of pitting corrosion process . The algorithm was capable of estimating the number and area of pits in the binary image and therefore provided better evaluation of pitting corrosion damages.
A popular image processing algorithm for texture analysis extracts features from the gray level co-occurrence matrix (GLCM) . In this paper, we explore the power of these features to deal with the stochastic pattern of corrosion for damage detection in metallic surfaces. Parameters extracted from the GLCM can be used to define similarity properties for corrosion detection purpose in image segmentation methods based on region approach. This approach consists in determining the regions that contain neighbor pixels in the image that have similar properties, that is, gray level and spatial relationship . Two GLCM parameters, namely contrast and energy, are considered to be the most efficient for discriminating different textural patterns .
A wide variety of literature works [6, 8, 10, 11] have reported that texture features are proper to characterize corroded surfaces. In addition, typical color changes of metallic surfaces are often related to corrosion. Thus, color attributes carry out relevant information to design corrosion detection systems. Moreover, some works have reported that feature combination carries more discriminant power to applications designed on small database image samples . Methods based on neural networks and feature selection are able to handle with high data dimensionality maintaining good generalization level [13, 14].
This paper proposes a robust feature set for reliable detection of atmospheric corrosion on metallic surfaces using optical images acquired by charge-coupled device (CCD) cameras. A total of 13 attributes per image sample were computed using color and texture models: HSI (hue, saturation, and intensity) color histogram statistics and GLCM probabilities. The GLCM probabilities measure the roughness, and HSI statistics characterize the color of metallic surface samples. A sequential bottom-up feature selection procedure  was applied as a result of the small sample size and the high data dimensionality. We use Fisher linear discriminant analysis (FLDA) and receiver operating characteristic (ROC) curve to investigate the performance of the proposed approach when combining texture and color feature subsets.
The outline of the paper is as follows. In the next section, we describe the image database and give a brief overview of texture and color attributes used for corrosion characterization. Section 3 introduces the proposed methodology and aspects of feature sets evaluation. The experimental results and performance analysis are covered in Section 4. In Section 5, we draw the concluding remarks.
2. Materials and Methods
2.1. Image Database
A set of 33 high-resolution images was collected from storage tanks of a petroleum plant. The images were obtained under different acquisition conditions of illumination and magnification. Some images show a large number of corrosion defects, while others give a detailed view of a single defect. An expert selected 84 regions of interest (ROI), each one resulting pixels small images containing true corrosion, corrosion-like and noncorrosion samples. A subset of 43 ROI images represent different corrosion damages. The remaining 41 ROI images contain non corroded surfaces or corroded-like surfaces. Figure 1 illustrates the image database.
2.2. Texture Attributes
Texture is formally defined as the set of local neighborhood properties of the gray levels of an image region . It reaches intuitive attributes as roughness, granulation, and regularity. There are four different methods for texture analysis in the literature: statistical, structural, model-based and transform-based methods.
The gray level intensity distribution of an image is based on the assumption that texture information is contained in the spatial relationship between the intensities of a pixel and its neighbor . This information is condensed in the GLCM. The gray level intensity distribution can be specified by a matrix of relative frequencies, in which two neighbor elements of texture labeled and , separated by a distance in an orientation , occur in the image, one with property and other with property .
The matrix represents GLCM and the sum index in (1) is denoted by GLCM size minus one less one. The parameters , , , and in (2) represent, respectively, the mean value and standard deviation of line and column from GLCM.
Contrast measures the dissimilarity intensity between a pixel and its neighbor over the whole image. Correlation represents how a pixel is related to its neighbor over the whole image. Energy is the sum of squared elements in GLCM, also known as uniformity of energy. Homogeneity stands for the similarity between gray level values of image pixels.
Homogeneity and contrast identify organized structures in the image. Energy and correlation characterize the complexity and nature of gray level transitions in the image. Even though these attributes contain information about image texture, it is difficult to identify which specific texture characteristic is represented by each attribute. Hence, texture attributes are stored in a feature database for further characterization by a classification process.
2.3. Color Attributes
Color is the visual perception of the spectral distribution of the light. Optical imaging uses three color channels, usually associated with red (), green (), and blue (), sufficient for the visual interpretation of spectra . In applications of image corrosion detection by using digital image processing and pattern recognition algorithms, it is relevant to identify the best color model to represent color attributes.
The HSI system constitutes a model that best describes how humans naturally respond to color. Thus, the HSI color space is appropriate for this purpose since it allows describing characteristics separately from brightness chrominance .
The hue, saturation, and intensity are obtained from RGB color space by using the following transformations:
Hue () is proportional to the color frequency as (5) describes. For a corroded surface, lies between yellow and red wavelengths.
Saturation () refers to the dominance of hue in the color and is given by (6). A corroded surface is normally more saturated than other areas because metallic surface is often painted in light colors as gray and white.
Intensity () is given by (7) and describes the strength of the light. As explained before, the color of non corroded surface tends to white wavelength (high intensity).
Color attributes are obtained by using statistical moments extracted from each HSI channel histogram. We adopted the histogram definition as a frequency for each pixel value, where and it refers to imaging quantization.
Each statistical moment provides a different meaning. Furthermore, the first moment (8) indicates where the individual color generally lies in the HSI color space. The second moment (9) incorporates the information on the spread or scale of the color distribution. Non corroded surfaces are often homogeneous and they imply low variance. The third moment (10) measures the asymmetry of the data around the sample mean and indicates when the HSI values lie toward maximum or minimum in the scale. The fourth moment (11) measures the flatness or peakedness of the color distribution as follows:
3. Methodology for Corrosion Characterization
3.1. Corrosion Descriptors
Automatic corrosion damage detection on metallic surfaces is a complex task which requires a multistep procedure. Figure 2 summarizes the feature extraction step used to design our proposed NDE (nondestructive evaluation) system. In our approach, we perform a discriminant analysis based on digital image features encompassing texture and color.
We propose a corrosion descriptor database organized into three-feature subsets: texture attributes, color attributes and a combination of texture and color attributes. GLCM has been computed by assigning the distance between pixels to 1 and orientation of neighbor pixels to . Attributes defined in (8)–(11) have been calculated for the histogram of the hue, saturation, and intensity components of the HSI color space.
3.2. Discriminant Analysis
Figure 3 illustrates the discriminant analysis of attributes to identify corroded and non corroded surfaces. The principal component analysis (PCA) is a mathematical procedure that optimizes the feature set by eliminating redundant attributes. The result is a smaller number of uncorrelated attributes called principal components.
Fisher Linear Discriminant Analysis (FLDA)  is applied to the three-feature subsets in order to compare the attributes robustness for corrosion detection. The discriminant fits a multivariate normal density to each data group, with a pooled estimate of covariance defined by
which maximizes the criterion
where is the mean and the sample size of class , ; is the maximum likelihood estimates of the covariances matrices of classes ; represents the new space that maximizes the criterion. According to (13), the criterion proposed by Fisher is the ratio of between-class to within-class variances.
The regression obtained by FLDA is used to assess the discrimination performance for each feature subset. The corroded class and non corroded class separability is investigated for different subset sizes.
Confusion matrix and receiver operating characteristic (ROC) curve are used to evaluate the class separability, robustness, and reliability. This matrix consists of two rows and two columns that report the number of true negatives, false positives, false negatives, and true positives estimated by the model comparing with the previous probabilities of the validation data. True values refer to correct model estimation, while false values correspond to incorrect estimated results. Error rate is quantified by the sum of false values, while accuracy is the sum of true values.
The confusion matrix provides the general discriminant performance for each feature subset. In order to determine the more appropriated subset, we used a receiver operating characteristic (ROC) curve analysis  to estimate the expected performance of a discriminant function under varying criterion. Sensitivity, specificity, and area under curve (AUC) are properties used to assess the performance for different number of attributes. The area under ROC Curve (AUC) gauges the ranking of correct class separation. When dealing with a reduced database sample, the area under ROC convex hull (ROCCH) provides the finest grade of the separability for the corrosion classes .
4. Experimental Results
We performed both qualitative and quantitative discriminant analysis in order to evaluate the effectiveness of different feature subsets separability.
A set of 13 attributes per image sample were computed from color and texture models using HSI statistics and gray level co-occurrence matrices (GLCMs) probabilities.
The feature subsets discriminant performance was compared in terms of classification error and execution time on a 13-dimensional (two feature subsets), 2-class ( and ) image database. For sake of simplicity, the two class-conditional densities were admittedly Gaussian-like, with mean vectors and and a pooled covariance matrix defined in (12).
The experimental results are summarized in Tables 1–4 and Figures 4, 5 and 6. The correct class discrimination for texture feature is computed as the sum of the highlighted values in the main diagonal of the confusion matrices. The values in Tables 1 and 2 reveal that about hits were obtained for texture features as much as for color features. The false negatives and false positives rates are of the same order () for both subsets.
Combining feature sets leads to obtain more discriminant power without loss of generality. We achieved over hits and an appreciably reduction of false positives to less than . The combination of texture and color features reduced by the number of false negatives and false positives. The values are reported in Table 3.
In Figure 4, we compare the ROC convex hulls obtained for different numbers of attributes. We noticed that the discriminant function aggregates more separability power as the feature set grows.
The ROC curves in Figures 5–7 show that satisfactory results were achieved when texture and color features are combined. The ROC curve presents graphically the statistics estimates of false positive and true positive corrosion detection rates. We have observed from the tests that the false positive rate (FPR) is minimized, while the true positive rate (TPR) is maximized when providing texture and color attributes, thus aggregating more discriminant information. This effect is noticed by the black dot position probabilistically representing the specificity (1-true negative rate) and the sensitivity (true positive rate) for a given feature subset. The AUC evidences whether a subset is more separable than the other regardless of the relative costs of misclassification. Table 4 gives the values for AUC and AUC. The separability of the best feature set is highlighted in gray.
The methodology was prototyped in a well-known numerical mathematics scripting environment. The execution time of the scripts is reported in terms of processor ticks spent on a 2.66 GHz Core 2 Duo processor. Ten randomly generated feature subsets, each with 84 image patterns, were tested and the averages of the runs are reported. The attributes are sequentially added one by one starting with the color subset. In the following the texture attributes are added until complete all 13 available attributes. Figure 8 shows that the error rate decays as the dimensionality increases more discriminant information. Although the execution time has an increase tendency with dimensionality of the feature set, it is noteworthy the decreasing error rate (from to ) when using a larger number of attributes.
In this paper, we have investigated image texture and color descriptors with the objective to address nondestructive atmospheric corrosion detection on petroleum plant equipments exposed to marine atmosphere. The idea of developing computer systems to assist specialists in corrosion inspection is to provide a tool to prevent risks for human life and environment in addition to minimizing economic losses.
Our approach integrates texture and color features to describe roughness and typical color changes in metallic surfaces. Thus, to address corrosion description, GLCM probabilities and HSI color space statistics are extracted from optical images of metallic surfaces, regardless of light and variations. Although texture and color feature subsets are likely to characterize corrosion individually, we demonstrated that when combining both of these subsets with a suboptimal sequential feature selection procedure the combination outperformed each one, that is, subset. Moreover, a linear discriminant analysis revealed that it minimized false positives and false negatives in corrosion detection.
Further work will investigate these corrosion descriptors for image segmentation in atmospheric corrosion detection systems.
William J, Callister D: Fundamentals of Materials Science and Engineering. 5th edition. John Wiley & Sons, New York, NY, USA; 2001.
Trujillo M, Sadki M: Sensitivity analysis for texture models applied to rust steel classification. Electronic Imaging Science and Technology, January 2004, San Jose, Calif, USA, Proceedings of SPIE 5303: 161-169.
Kutz M: Handbook of Environmental Degradation of Materials. William Andrew, NewYork, NY, USA; 2007.
Bardal E: Corrosion and Protection. Springer, Berlin, Germany; 2003.
Roberge PR: Corrosion Inspection and Monitoring. John Wiley & Sons, New York, NY, USA; 2007.
Arko Lucieer AS, Fisher P: Multivariate texture-based segmentationof remotely sensed imagery for extraction of objects and theiruncertainly. International Journal of Remote Sensing 2005, 2917–2936: 610-621.
Itzhak D, Dinstein I, Zilberberg T: Pitting corrosion evaluation by computer image processing. Corrosion Science 1981, 21(1):17-22. 10.1016/0010-938X(81)90059-7
Robert KS, Haralick RM, Dinstein I: Textural features for image classification. IEEE Transactions on Systems, Man and Cybernetics 1973, 3(6):610-621.
Chabrier S, Emile B, Rosenberger C, Laurent H: Unsupervised performance evaluation of image segmentation. EURASIP Journal on Applied Signal Processing 2006, 2006: 1-12.
Baraldi A, Parmiggiani F: An investigation of the textural characteristics associated with gray level cooccurrence matrix statistical parameters. IEEE Transactions on Geoscience and Remote Sensing 1995, 33(2):293-304. 10.1109/36.377929
Choi KY, Kim SS: Morphological analysis and classification of types of surface corrosion damage by digital image processing. Corrosion Science 2005, 47(1):1-15. 10.1016/j.corsci.2004.05.007
Lopes DFA, Ramalho GLB, de Medeiros FNS, Costa RCS, Araújo RTS: Combining features to improve oil spill classification in SAR images. In Structural, Syntactic, and Statistical Pattern Recognition, Lecture Notes in Computer Science. Volume 4109. Springer, Berlin, Germany; 2006:928-936. 10.1007/11815921_103
Ramalho GLB, Medeiros FNS: Using boosting to improve oil spill detection in SAR images. Proceedings of the 18th International Conference on Pattern Recognition (ICPR '06), August 2006 1066-1069.
Ramalho GLB, de Medeiros FNS: Improving reliability of oilspill detection systems using boosting for high-level feature selection. Proceedings of the International Conference on Image Analysis and Recognition, August 2007, Lecture Notes in Computer Science No. 4633 1172-1181.
Jain A, Zongker D: Feature selection: evaluation, application, and small sample performance. IEEE Transactions on Pattern Analysis and Machine Intelligence 1997, 19(2):153-158. 10.1109/34.574797
Livens S: Image analysis for material characterisation, Ph.D. dissertation. Instelling Antwerpen University; 1988.
Webb AR: Statistical Pattern Recognition. 2nd edition. John Wiley & Sons, London, UK; 2002.
The authors would like to thank ANP PRH31 for providing financial assistance.
About this article
Cite this article
Medeiros, F.N., Ramalho, G.L., Bento, M.P. et al. On the Evaluation of Texture and Color Features for Nondestructive Corrosion Detection. EURASIP J. Adv. Signal Process. 2010, 817473 (2010). https://doi.org/10.1155/2010/817473
- Storage Tank
- Feature Subset
- Metallic Surface
- Color Attribute
- Corrode Surface